“Translating” a POST File-Upload HTML to a curl command line

◇◆丶佛笑我妖孽 提交于 2019-11-27 02:58:43

问题


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?


回答1:


Something like:

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


来源:https://stackoverflow.com/questions/6218954/translating-a-post-file-upload-html-to-a-curl-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!