title: Submit form using HttpClient in C#
body: <p>I'm getting the website form by htmlagilitypack, setting the form variable and trying to submit the form. Everything looks that is working fine, but the response from the form submit is null.</p>
  
  <pre><code>static void Main(string[] args)
      {
          string urlAddress = "mywebsite";
  
          HtmlWeb web = new HtmlWeb();
          HtmlDocument doc = web.Load(urlAddress);
  
          // Post link
          var post = doc.GetElementbyId("post").GetAttributeValue("href", "");
  
          doc = web.Load(post);
  
          // get the form
          var form = doc.DocumentNode.SelectSingleNode("//form[@class='picker']");
  
          // get the form URI
          string actionValue = form.Attributes["action"]?.Value;
          System.Uri uri = new System.Uri(actionValue);
  
          // Populate the form variable
          var formVariables = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
          formVariables.Add(new KeyValuePair&lt;string, string&gt;("id", "ho"));
          var formContent = new FormUrlEncodedContent(formVariables);
  
          // submit the form
          HttpClient client = new HttpClient();
          var response = client.PostAsync(uri, formContent);
  
      }
  </code></pre>
  
  <p>Does anyone know why my variable response is null?</p>
  
  <p>Thanks</p>