Need to dispose HttpWebResponse
using (HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse())
{
using (var str = new StreamReader(webresponse.GetResponseStream()))
{
result = str.ReadToEnd();
}
webresponse.Close();
}
Thursday, October 11, 2012
How to deal with "Content-Length or Chunked Encoding cannot be set for an operation that does not write data"
Server send 303 redirection for the request. Check your request data if anything wrong .
http://en.wikipedia.org/wiki/HTTP_303
http://en.wikipedia.org/wiki/HTTP_303
Wednesday, October 10, 2012
Tuesday, October 9, 2012
Subscribe to:
Posts (Atom)
