title: Unable to do POST request using C# code using authentication
body: <p>I am using below code to do a POST request on a url.</p>
  
  <pre><code>namespace ConsoleAppPost
  {
      using System;
      using System.Net.Http;
      using System.Threading.Tasks;
  
      namespace HttpClientStatus
      {
          class Program
          {
              static async Task Main(string[] args)
              {
                  using var client = new HttpClient();
  
                  var result = await client.PostAsync("https://XXXX/api/XXX/XX/XXX/xyz", HttpContent content);
                  Console.WriteLine(result.StatusCode);
  
  
              }
          }
      }
  }
  </code></pre>
  
  <p>But ,i am getting below error:</p>
  
  <p>No overload for method PostAsync takes 1 argument </p>
  
  <p>I also want to use username and password as authentication to do POST request in the code.
  Please help me.</p>