title: The server committed a protocol violation. Section=ResponseStatusLine
body: <p>Please, someone help me.  I've been researching this for hours, have tried lots of different suggested fixes, and I'm at a total loss as to why I am still getting this error.  </p>
  
  <p>I have an <em>ASP.NET 4.0</em> web page with the following code in it:</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(targetHref);
  // request.KeepAlive = false;
  // request.ProtocolVersion = System.Net.HttpVersion.Version10;
  // request.ServicePoint.Expect100Continue = false;
  
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  </code></pre>
  
  <p>I've tried every combination I can imagine of un-commenting the above 3 commented lines.</p>
  
  <p>I have this in my web.config:</p>
  
  <pre><code>&lt;system.net&gt;
     &lt;settings&gt;
        &lt;httpWebRequest useUnsafeHeaderParsing ="true"/&gt;
     &lt;/settings&gt;
  &lt;/system.net&gt;
  </code></pre>
  
  <p>When I am running <em>Fiddler</em> on my dev machine, the page runs without exception and fiddler shows this message at the top of the return:</p>
  
  <blockquote>
    <p>HTTP/1.0 200 This buggy server did not return headers</p>
  </blockquote>
  
  <p>Without Fiddler running, I get the error every time on the <code>request.GetResponse()</code> line.</p>