添加自定义Get和POST
This commit is contained in:
parent
7275e8810e
commit
1e1cdfa6c2
@ -55,19 +55,9 @@ namespace Inotify.Sends.Products
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
catch(Exception ex)
|
catch
|
||||||
{
|
{
|
||||||
WebException wex = (WebException)ex;
|
return false;
|
||||||
var s = wex.Response.GetResponseStream();
|
|
||||||
string ss = "";
|
|
||||||
int lastNum;
|
|
||||||
do
|
|
||||||
{
|
|
||||||
lastNum = s.ReadByte();
|
|
||||||
ss += (char)lastNum;
|
|
||||||
} while (lastNum != -1);
|
|
||||||
s.Close();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user