I'm looking for a way to automate an HTTP Post of a file to a web server. I have an html page that'll do it, but I'd like to automate it. I'd also like to grab the response given back by the server. Here is the HTML I have that works:
<FORM METHOD="Post" enctype="multipart/form-data" Action="whatever.asp">
Username<INPUT TYPE="Hidden" Name="username" size="20"><br>
Password<INPUT TYPE="Hidden" Name="password" size="20"><br>
File to upload<INPUT TYPE="file" Name="data" size="20"><br>
Client type<INPUT TYPE="Hidden" Name="client" size="20"><br>
<input type="submit" value="Submit">
</form>
Is there anyway to automate this process? Even if I couldn't grab a response it'd be helpful to automatically submit the file.
Thanks in advanced for any help.
-XolloX
<FORM METHOD="Post" enctype="multipart/form-data" Action="whatever.asp">
Username<INPUT TYPE="Hidden" Name="username" size="20"><br>
Password<INPUT TYPE="Hidden" Name="password" size="20"><br>
File to upload<INPUT TYPE="file" Name="data" size="20"><br>
Client type<INPUT TYPE="Hidden" Name="client" size="20"><br>
<input type="submit" value="Submit">
</form>
Is there anyway to automate this process? Even if I couldn't grab a response it'd be helpful to automatically submit the file.
Thanks in advanced for any help.
-XolloX