title: Posting data from Controller to external URL
body: <p>I am implementing payment system for a company, and usind a 3D secure model. Basicaly i need to post a data to the bank as below : </p>
  
  <pre><code>&lt;form method="post" action="https://&lt;sunucu_adresi&gt;/&lt;3dgate_path&gt;"&gt;
                  ....
  &lt;/form&gt;
  </code></pre>
  
  <p>And bank is returning some values ? How can i post to this URL from controller to take returning parameters ? </p>
  
  <p>Regards. </p>
  
  <p>Possible Solution #1 and Question ( @elolos )</p>
  
  <p>Here is my 2 action in NewPayment controller . 
  And I am calling  <a href="http://localhost.com:34324/NewPayment/PostTo3D" rel="nofollow">http://localhost.com:34324/NewPayment/PostTo3D</a> but getting 404 error. I dont know async functions actually, i think this 404 is about my fault ? How should i call this async function ?</p>
  
  <pre><code>    [HttpPost]
      public ActionResult umut(string bb) {
          ViewBag.Message = bb;
          return View();
      }
  
  
  
      [HttpPost]
      private async Task&lt;HttpResponseMessage&gt; PostTo3D()
      {
          HttpClient client = new HttpClient();
          var content = new FormUrlEncodedContent(new[] 
      {
          new KeyValuePair&lt;string, string&gt;("bb", "Hello Worlds")
      });
  
          content.Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
  
          return await client.PostAsync("http://localhost.com:34324/NewPayment/umut", content);
  
      }
  </code></pre>