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
2007-07-06 08:32 | Posted by Sunshow | Filed Under Delphi
一开始pFrom和pTo没有以“#0#0”结尾,结果发现在有的机器上能移动成功,有的机器上SHFileOperation返回1026无法转移,查了一下资料
标签:api, 文件, 移动ShFileOperation中的pFrom和pTo中可以包含多个文件名,文件名之间用 '\0' 分割,最后以两个\0结束。
Recent Comments