Need to dispose HttpWebResponse
using (HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse())
{
using (var str = new StreamReader(webresponse.GetResponseStream()))
{
result = str.ReadToEnd();
}
webresponse.Close();
}
No comments:
Post a Comment