Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Post/Upload

Status
Not open for further replies.

xollox

Technical User
Jun 28, 2002
18
US
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=&quot;Post&quot; enctype=&quot;multipart/form-data&quot; Action=&quot;whatever.asp&quot;>
Username<INPUT TYPE=&quot;Hidden&quot; Name=&quot;username&quot; size=&quot;20&quot;><br>
Password<INPUT TYPE=&quot;Hidden&quot; Name=&quot;password&quot; size=&quot;20&quot;><br>
File to upload<INPUT TYPE=&quot;file&quot; Name=&quot;data&quot; size=&quot;20&quot;><br>
Client type<INPUT TYPE=&quot;Hidden&quot; Name=&quot;client&quot; size=&quot;20&quot;><br>
<input type=&quot;submit&quot; value=&quot;Submit&quot;>
</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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top