curl 发送get、post请求

2022-05-23  本文已影响0人  boyiis

GET

curl --location --request GET 'http://xxx.com/xxx' 

POST

curl --location --request POST 'http://xxxx.com/xxxx' --header 'Content-Type: application/json' -d '{"limitTypeCode":"T13","cargoTypeCode":"C11","expressTypeCode":"B1","extendAttr":""}'

请求实体中的数据可以用下面的网址压缩+转义
http://www.ab173.com/json/zhuanyi.php

上一篇 下一篇

猜你喜欢

热点阅读