美文网首页
Linux 发送GET、POST请求

Linux 发送GET、POST请求

作者: Bluely | 来源:发表于2019-11-08 15:06 被阅读0次

GET请求

不带参数:curl "http://www.baidu.com"

带参数:curl -v http://127.0.0.1:80/xcloud/test?version=1&client_version=1.1.0&seq=1001&host=aaa.com

POST请求

curl -i -k -H "Content-type: application/json" -X POST -d '{"AppKey":"***", "AppSecret":"*****"}' http://127.0.0.1:8080/xxx/xxxx/xxxx

相关文章

网友评论

      本文标题:Linux 发送GET、POST请求

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