1.get请求
curl "http://www.baidu.com" 只显示对方返回结果或下载文件
curl -i "http://www.baidu.com" 显示头部和对方返回结果
curl -v "http://www.baidu.com" 显示请求过程和对方返回结果
2.post请求
curl -d "param1=value1¶m2=value2" "http://www.baidu.com"
json格式请求
curl -l -H "Content-type: application/json" -X POST -d '{"phone":"13521389587","password":"test"}' http://www.baidu.com