"Translating" the HTML POST file into the curl command line

I suppose this should be pretty simple, but I can't get it to work, and googling doesn't give me anywhere ... HTML code:

<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?

+7
source share
1 answer

Something like:

 curl -F " FileUpload=@filename.txt " http://DOMAINNAMEHERE.COM/Forms/Config_3 
+14
source

All Articles