linux 模拟post请求

curl -X POST \
-H "Content-Type: application/json"  \
-H "token:GXJP1clw4vNMxPbuf0vCRoL9" \
--data '{"aa":5,"bb":"11","cc":4}' \
-v 127.0.0.1:9700/test-project/getInfo

 

linux 模拟https post请求

curl -k --insecure -X POST \
-H "Content-Type: application/json"  \
-H "token:GXJP1clw4vNMxPbuf0vCRoL9" \
--data '{"aa":5,"bb":"11","cc":4}' \
-v "https://127.0.0.1:9700/test-project/getInfo"

 

posted on 2019-08-20 08:41  pu20065226  阅读(232)  评论(0编辑  收藏  举报