Something changed on one of the web services I was using - suddenly one of my requests was failing with a WebException -
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
To fix this I had to add this to my web.config/app.config:
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
Simples ;)
No comments:
Post a Comment