title: HttpWebRequest or WebClient - Remove the Connection header when POSTing data - C#
body: <p>I am building an application with C# and one of the requirements is that the headers have to contain very specific data. I have been working with the WebClient and HttpWebRequest classes in C# but both do not have the option to explicitly remove the Connection header. This is what I have tried: </p>
  
  <p><strong>WebClient</strong></p>
  
  <pre><code>client.Headers.Remove("Connection");
  client.Headers.Add("Connection", null); // if only...
  </code></pre>
  
  <p><strong>HttpWebRequest</strong></p>
  
  <pre><code>request.Connection = null;
  request.Connection = "";
  </code></pre>
  
  <p>Some of what I have read is that you can only have this header set to Keep-Alive or Close. I need it to not even be on the web request.</p>
  
  <p>All other required headers are adding just fine. It is this one that is causing a head ache. I'm beginning to believe that removing the Connection header is not possible. Is there any language where it is possible if this is the case?</p>
  
  <p>Much appreciation for the time you guys take to look at this!</p>
  
  <p>Thank you!</p>