title: How to simulate HTTP POST programatically to send file and input parameters
body: <p>I need to <strong>POST</strong> HTML Form <strong>programmatically</strong> containing some input parameters and a zip file with <strong>ContentType=application/zip</strong>.</p>
  
  <pre><code>&lt;form id="form1" method="post" action="http://subdomain.domain.com/" runat="server"  enctype="multipart/form-data"&gt;
  &lt;div&gt;
      &lt;input type="file" id="file" name="file" value=""  /&gt;
      &lt;input type="text" name="param1" value="valparam1" /&gt;
      &lt;input type="text" name="param2" value="valparam2" /&gt;
      &lt;input type="text" name="param3" value="valparam3" /&gt;
      &lt;input id="Submit1" type="submit" value="Send"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>In short, I want to simulate the above behaviour programmatically (POSTing the file ContentType as well).</p>
  
  <p>I would prefer WebClient over HttpRequest;</p>