Sunday, June 05, 2011

Full solution to: The server committed a protocol violation. Section=ResponseStatusLine

In most answers to this error you will get same answer:
      <httpWebRequest useUnsafeHeaderParsing="true" />

But not always a problem will be resolved. A full solutions to error present here. Just add next row to request variable:

   request.KeepAlive = false;


   ((HttpWebRequest)request).KeepAlive = false; (Where request type is WebRequest)

No comments: