title: Explicitly Set Content-Type Headers For Get Operation in HttpClient
body: <p>Is there a way in which I can explicitly set the <code>Content-Type</code> header values when performing a <code>GET</code> with <code>HttpClient</code> ?</p>
  
  <p>I realise this breaks 1.1 protocol, but I am working with a API that does not conform to it, and REQUIRES I set a <code>Content-Type</code> Header.</p>
  
  <p>I have tried this with to no avail...</p>
  
  <pre><code>using (var httpClient = new HttpClient())
  {
     var httpRequestMessage = new HttpRequestMessage(HttpMethod.Get, "http://example.com");
  
     httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "application/x-www-form-urlencoded+v1.3");
  
     await httpClient.SendAsync(httpRequestMessage)
  }
  </code></pre>
  
  <p>I've inspected the <code>DefaultRequestHeaders</code> after the <code>TryAddWithoutValidation</code> is added, and it does not seem to be setting the <code>Content-Type</code> value. </p>
  
  <p>If I try to set the Content-Type of the httpRequestMessage (by setting <code>httpRequestMessage.Content = ...</code>, I get the following error:</p>
  
  <pre><code>Cannot send a content-body with this verb-type.
  </code></pre>
  
  <p>Is there a way that I can explicitly set the <code>Content-Type</code> for a <code>GET</code> operation using the HttpClient?</p>