title: C#: HttpClient with POST parameters
body: <p>I use codes below to send POST request to a server:</p>
  
  <pre><code>string url = "http://myserver/method?param1=1&amp;param2=2"    
  HttpClientHandler handler = new HttpClientHandler();
  HttpClient httpClient = new HttpClient(handler);
  HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, url);
  HttpResponseMessage response = await httpClient.SendAsync(request);
  </code></pre>
  
  <p>I don't have access to the server to debug but I want to know, is this request sent as POST or GET?</p>
  
  <p>If it is GET, How can I change my code to send param1 &amp; param2 as POST data (not in the URL)?</p>