title: C# Web API - POST Request doesn't get executed
body: <p>I am trying to send a POST request from my ASP.NET Core Web API Project but the request is never sent. The method gets executed with no errors but the request never gets sent out from the async method.</p>
  
  <p><strong>My Implementation:</strong></p>
  
  <pre><code>public async void notify(String message)
  {    
      String url = "MY_WEBSERVICE_URL";
      var client = new HttpClient();
      client.BaseAddress = new Uri(url);
      HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "relativeAddress");
      request.Content = new StringContent("application/x-www-form-urlencoded;charset=UTF-8",
      Encoding.UTF8, "application/json");
  
      Byte[] byteArray = Encoding.UTF8.GetBytes("{\"text\":\"" + message + "\"}");
      request.Content.Headers.ContentLength = byteArray.Length;
  
      await client.SendAsync(request).ContinueWith(responseTask =&gt;
      {
         Console.WriteLine("Response: {0}", responseTask.Result);
      });
  }
  </code></pre>
  
  <p>Is this the proper way of making a POST request from a Core Web API project? Thank you in advance</p>