Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Translating" a POST File-Upload HTML to a curl command line

I guess this should be pretty simple but I can't seem to get it working, plus googling is not getting me anywhere... The HTML code is this:

<FORM ENCTYPE="multipart/form-data" METHOD="POST" ACTION="/Forms/Config_3">
<INPUT TYPE="FILE" NAME="FileUpload" SIZE="15" MAXLENGTH="15">
<INPUT TYPE="SUBMIT" NAME="UPDATE_BUTTON" VALUE="Update" VALUE="Change">

How can I turn this into a curl command line?

like image 720
stereochilly Avatar asked Jun 02 '11 18:06

stereochilly


1 Answers

Something like:

curl -F "[email protected]" http://DOMAINNAMEHERE.COM/Forms/Config_3
like image 67
mhoofman Avatar answered Nov 09 '22 02:11

mhoofman