700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > curl 模拟 GET\POST 请求

curl 模拟 GET\POST 请求

时间:2023-02-25 13:47:40

相关推荐

curl 模拟 GET\POST 请求

独角兽企业重金招聘Python工程师标准>>>

curl post 案例如下:

1.

命令格式:curl http://ip:port/product/productDetail/queryProductList -X POST -H "Content-Type:application/json" -d '{"data":{"channelCode":"xm02","productStatus":"2","categoryType":"JY","status":"003000","orgId":"374"}}'

2.

命令格式:curl http://ip:port/apply/product/matchedRules -X POST -H "Content-Type:application/json" -d '{"loanProductId":"03e2e13bf3074b0ea2e13bf307eb0e75","status":"003000","orgId":"1","sceneCode":"repayType"}'

3.携带cookie 的get请求

命令格式:curl http://gammaq-/admin/user/isLogin -b "td_cookie=572606210uuu; usernameall=admin; token=73d08b5c8c7041c094b34b76ba01b879"-v

参考链接:/lookingdream/2087142

4.curl发送http请求保存结果到文件

命令格式:curl--header"Content-Type:application/json"'http://hostname:ip/get/path'>/save/to/path/filename.json

参考链接:/bsr1983/article/details/84824621

5.通过GET方法请求 ,访问百

命令格式: curl protocol://address:port/url

参考链接:/alfred0311/p/7988648.html

6.通过代理来访问

命令格式:curl -x10.18.0.89:1080 /sms/query

参考链接:/fungleo/article/details/80703365

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。