title: HttpClient POST
body: <p>I'm using some POST requests in my project until when I came across a form with </p>
  
  <blockquote>
    <p>onsubmit="return false;"</p>
  </blockquote>
  
  <pre><code>&lt;form name="formName" id="formName" action="" method="post" onsubmit="return false;"&gt;
  ...
  &lt;/form&gt;
  </code></pre>
  
  <p>This form is submitted by a javascript onclick button function.</p>
  
  <p>All the other request I'm doing are working correctly, but not this one and I strongly believe the onsubmit false is the cause.</p>
  
  <p>Is there anyway to get around this?</p>
  
  <p>**EDIT (Complement) **</p>
  
  <p>thats the POST request</p>
  
  <pre><code>        FormUrlEncodedContent formContent = new FormUrlEncodedContent(new[]
          {
              new KeyValuePair&lt;string, string&gt;("a", "b")
  
          });
          Task&lt;HttpResponseMessage&gt; post = client.PostAsync(url, formContent);
          post.Wait();
          Task&lt;string&gt; contents = post.Result.Content.ReadAsStringAsync();
          contents.Wait();
  </code></pre>