title: C# - Body content in POST request
body: <p>I need to make some api calls in C#. I'm using Web API Client from Microsoft to do that. I success to make some POST requests, but I don't know how to add the field "Body" into my requests. Any idea ?
  Here's my code:</p>
  
  <pre><code>    static HttpClient client = new HttpClient();
      public override void AwakeFromNib()
      {
          base.AwakeFromNib();
          notif_button.Activated += (sender, e) =&gt; {
          };
          tips_button.Activated += (sender, e) =&gt;
          {
              Tip t1 = new Tip(title_tips.StringValue, pic_tips.StringValue, content_tips.StringValue, "TEST");
              client.BaseAddress = new Uri("my_url");
              client.DefaultRequestHeaders.Accept.Clear();
              client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
              CreateProductAsync(t1).Wait();
          };
      }
  
      static async Task&lt;Uri&gt; CreateProductAsync(Tip tips)
      {
          HttpResponseMessage response = await client.PostAsJsonAsync("api/add_tips", tips);
          response.EnsureSuccessStatusCode();
          return response.Headers.Location;
      }
  </code></pre>