开发者

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

开发者 https://www.devze.com 2023-03-10 12:41 出处:网络
I guess this should be pretty simple but I can\'t seem to get it working, plus googling is not getting me anywhere...

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 tu开发者_Python百科rn this into a curl command line?


Something like:

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

精彩评论

暂无评论...
验证码 换一张
取 消