美文网首页
curl 发送get、post请求

curl 发送get、post请求

作者: boyiis | 来源:发表于2022-05-23 15:13 被阅读0次

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

相关文章

网友评论

      本文标题:curl 发送get、post请求

      本文链接:https://www.haomeiwen.com/subject/puvrprtx.html