curl -H "Expect:" -F "action=upload_mf.php" -F "file=@1246285971.xml;type=text/xml" http://localhost/upload_mf.php
加上"Expect:"的Header是因为Curl会默认带上"Expect: 100-continue",而我用的lighttpd 1.4.18不支持这个Header,会返回417的状态码导致出错
标签:curl, lighttpd, 上传, 文件相关日志
2009-06-29 15:31 | Posted by Sunshow | Filed Under Linux, Network
Recent Comments