curl -H "Expect:" -F "passport=monitor_134" -F "file=@/root/1.txt" http://192.168.1.105:80/testuploadimg > /root/post.log
上面的代码 稍微解释一下:
第一个参数 -H “Expect” 用来解决在lighttpd 下 " 417 - Expectation Failed "
第二、三个参数 -F 就是你上传表单里的字段 其中 @后面表示要上传的本地文件路径