curl 命令记录

# 上传文件

curl -u ftpuser:ftppw -T myfile.txt ftp://ftp_server/public_html/

# 上传多个文件

curl -u ftpuser:ftppw -T "{myfile1.txt, myfile2.txt}" ftp://ftp_server/public_html/



可行命令:

//上传一个文件

curl -F "[email protected]" http://192.168.3.169:8080/upload

//上传多个文件  待验证。

curl -F "filename={xxx.jpg, xxx.jpg}" http://192.168.3.169:8080/upload

虽然能发送上传多个的命令但是不知道服务端如何解析,仍然是上传不成功。

//登录

curl -d "userName=123&password=123" http://192.168.3.169:8080/login



参考链接:

http://me.iblogc.com/2015/12/17/curl%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/

你可能感兴趣的:(curl 命令记录)