这么写:
curl -F "attachfile0=@/home/darren/sample1.pl" \
-F "attachfile1=@/home/darren/sample2.pl" \
-F "counter=2" \
-F "sid=SIDXXX" \
-F "MAX_FILE_SIZE=5242880" \
"http://www.newsmth.net/bbsupload.php?act=add"
【 在 cdf (欠缺) 的大作中提到: 】
: 想用curl来实现上传某文件foo.tar.gz
: 试着用
: curl -F "action=upload" -F "filename=@foo.tar.gz"
http://www.newsmth.net/bbsupload.php?sid=37706xxxx: ...................
--
修改:huyg FROM 211.99.222.*
FROM 211.99.222.*