1. 设置请求方法. -X
curl -X GET -d "hello=world" https://www.sina.com.cn
2.添加请求头 -H
curl -X GET -d "hello=world" -H "Content-Type:application/json" -H "token:123445" https://www.sina.com.cn
3.下载请求 -o
curl -o http://www.baidu.com
4.设置浏览器 -A
curl -A "Mozilla/5.0" http://www.baidu.com