title: StringContent vs ObjectContent
body: <p>I am using System.Net.Http's HttpClient to call a REST API with "POST" 
  using the following code:</p>
  
  <pre><code>using (HttpRequestMessage requestMessage = new HttpRequestMessage(
                                             HttpMethod.Post, new Uri(request)) { })
  {
       response = await httpClient.PostAsync(request, objectContent);
  }
  </code></pre>
  
  <p>The "objectContent" is currently this -</p>
  
  <pre><code>objectContent = new ObjectContent(jsonContent.GetType(),
                                    jsonContent,
                                    new JsonMediaTypeFormatter());
  </code></pre>
  
  <p>I was wondering what difference it makes if this was a StringContent rather than an ObjectContent like this?</p>
  
  <pre><code>objectContent = new StringContent(content);
  objectContent.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
  </code></pre>
  
  <p>Both work fine. Because it is JSON, i tend to assume that StringContent would make sense. But when is ObjectContent to be used because pretty much all content sent is a "string".</p>