常用指令
# 发post请求
curl -X POST --data '{"uid":123,"val":100}' http://127.0.0.1:9999/add_money
# 显示http response头部
curl -i http://127.0.0.1
# 显示http请求详细过程,调试网络问题非常有用
curl -v http://127.0.0.1
# 带header
curl -H 'X-Token:eabcb4140cea017424bd6e34b391f520' http://127.0.0.1
# 不使用证书连接到https地址
curl -k https://127.0.0.1:9999/hello
# 输出到文件
curl http://127.0.0.1 -o output.txt
# 不输出进度条,只输出结果,加-s选项(重定向的时候有用)
curl -s http://127.0.0.1:1234/test