title: How do I upload a file using http post? Delphi 2009
body: <p>My goal is to upload a text file via HTTP post I am using Delphi 2009.</p>
  
  <p>Say for example to the following URL</p>
  
  <p><a href="https://www.example.com/ex/exampleAPI.asmx/Process">https://www.example.com/ex/exampleAPI.asmx/Process</a> </p>
  
  <p>I understand it can be done by using the TIdHttp component.  And the following call </p>
  
  <pre><code>IdHttp1.Post();
  </code></pre>
  
  <p>But I cant figure out how to set up everything i.e. specifying the url and including the file to be posted.</p>
  
  <p>Thanks.</p>