title: PowerShell equivalent of curl HTTP POST for file transfer
body: <p>I'm currently uploading a file via an HTTP post with a call like this:</p>
  
  <pre><code>curl --verbose --data-binary @C:\Projects\TestUploadFiles\TestFile1.csv "http://client.abc.com/submit?username=UserX&amp;password=PasswordHere&amp;app=test1&amp;replacejob=TestNewJob&amp;startjob=n"
  </code></pre>
  
  <p>This works fine. However, I actually have about 3000 files daily to upload - every file in my directory. I was thinking about just writing out a batch file that has multiple cURL commands, one for each file. But this would leave me with the overhead of opening and closing the connection once for each file, right?</p>
  
  <p>So, I am considering PowerShell. I'm not familiar with it, but I believe that I might be able to use WebRequest for this purpose.</p>
  
  <p>Would this be a good option? Any code sample pointers?</p>