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