title: unable to get useUnsafeHeaderParsing to work
body: <p>I have a server that sits behind an Incapsula Web App Firewall, which alters the headers sent to IIS. When I perform a specific request I get the following error from IIS: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF. This behavior is also described in: <a href="http://www.dragonblogger.com/fix-live-writer-protocol-violation-error-cr-lf/" rel="nofollow">http://www.dragonblogger.com/fix-live-writer-protocol-violation-error-cr-lf/</a></p>
  
  <p>According to this page <a href="http://msdn.microsoft.com/en-us/library/65ha8tzh%28v=vs.80%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/65ha8tzh%28v=vs.80%29.aspx</a> I should be able to accept these headers by setting the useUnsafeHeaderParsing to true. So I tried adding this to the web.config in the virtual directory from which the specific request should be handled:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.net&gt;
          &lt;settings&gt;
              &lt;httpWebRequest useUnsafeHeaderParsing="true" /&gt;
          &lt;/settings&gt;
      &lt;/system.net&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>After restarting IIS it still does not work. I also tried adding this to the c:\windows\Microsoft.NET\framework\config\web.conf but it did not work either.</p>
  
  <p>Does anyone have any idea what I am missing?</p>
  
  <p>Thanks!</p>