-b, --cookie <data> Send cookies from string/file
//发送cookie
// curl --cookie "name=xxx;xxx=32323" http://localhost/opt.php
-d, --data <data> HTTP POST data
//POST 数据
//示例:curl -X POST -d "xx=222&tt[]=90&tt[]=89" http://localhost/opt.php
-F, --form <name=content> Specify HTTP multipart POST data
//上传示例curl --form upload=@HttpDump.log --form press=OK http://localhost/opt.php
-i, --include Include protocol response headers in the output
//显示http response的头信息
//示例: curl -i|--include www.baidu.com
-o, --output <file> Write to file instead of stdout
//(写入或者保存文件)
示例:curl -o|--output baidu.html https://www.baidu.com
-X, --request <command> Specify request command to use
//指定要使用的请求命令,GET|POST|PUT|DELETE...
--trace <file> Write a debug trace to FILE
//:curl --trace xx.txt www.baidu.com
-A, --user-agent <name> Send User-Agent <name> to server
//curl -A "Mozilla/5.0 (Android; Mobile; rv:35.0) Gecko/35.0 Firefox/35.0" http://www.baidu.com
-v, --verbose Make the operation more talkative(显示一次http通信的整个过程,包括端口连接和http request头信息)
CURL 部分命令
最新推荐文章于 2023-09-13 22:00:41 发布