curl 请求笔记

curl -H "Content-Type: application/json" -X POST -d '{"uid":31806058,"id":5499}'   http://127.0.0.1:8080/service/serviceProgressService/queryIndemnity
curl -H "Content-Type: application/json" -X GET -d http://127.0.0.1:8001/service/customerservice/isCustomerAvailable?sellerId=80949737

GET :

curl -s "http://127.0.0.1:8001/service/customerservice/getSellerCustomerRouteBySource?source=order&buyerUid=67734871&value=512047639292764871"

linux会自动将'&'转义,可以将整个链接放在"**"中,或者**\&**

curl命令详解:https://www.cnblogs.com/snow-flower/p/6130945.html

猜你喜欢

转载自blog.csdn.net/a18827547638/article/details/81979067
今日推荐