The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

October 30, 2007 14:21 by digitalman
We've had a form running on a web app for over a year with no problems. Then yesterday it all of a sudden starting throwing exceptions. I tracked it down to some code we use to send data to a 3rd party service via the HttpWebRequest object. I'm assuming something at the 3rd party's end must have changed recently as we've made no changes to our code. I found some information at this forum link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=21106&SiteID=1&PageID=0

Basically I was able to temporarily fix the issue by adding the following to the web.config:

<system.net>
  <
settings>
    <
httpWebRequest useUnsafeHeaderParsing="true" />
  settings>
system.net>

Although I'm not sure yet what the ramifications are of using this.

Ok, heard back from the vendor and it was a configuration error on their end. Has been resolved.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts