title: Adding Http Headers to HttpClient
body: <p>I need to add http headers to the HttpClient before I send a request to a web service. How do I do that for an individual request (as opposed to on the HttpClient to all future requests)? I'm not sure if this is even possible.</p>
  <pre><code>var client = new HttpClient();
  var task =
      client.GetAsync(&quot;http://www.someURI.com&quot;)
      .ContinueWith((taskwithmsg) =&gt;
      {
          var response = taskwithmsg.Result;
  
          var jsonTask = response.Content.ReadAsAsync&lt;JsonObject&gt;();
          jsonTask.Wait();
          var jsonObject = jsonTask.Result;
      });
  task.Wait();
  </code></pre>