添加自定义Get和POST

This commit is contained in:
xpnas 2021-03-28 23:07:13 +08:00
parent 7275e8810e
commit 1e1cdfa6c2

View File

@ -55,19 +55,9 @@ namespace Inotify.Sends.Products
return true;
}
catch(Exception ex)
catch
{
WebException wex = (WebException)ex;
var s = wex.Response.GetResponseStream();
string ss = "";
int lastNum;
do
{
lastNum = s.ReadByte();
ss += (char)lastNum;
} while (lastNum != -1);
s.Close();
return false;
}
}