小强哥博客

小强哥,小强哥博客,技术大咖

常用几种curl命令写法

curl -X GET http://www.test.com

curl -X POST http://www.test.com

curl -X POST http://www.test.com -H 'content-type: application/json' -d '{"appkey":"1111111111","param":{"time":"1111","host":"2222","event":"3333"},"mobile":["18888888888"]}'

curl -X GET http://www.test.com  | python -m json.tool