概述
## Get请求
···
curl http://192.168.94.245:9090/getPerformerInfo?json=\{"performerId":666\}
花括号 需要两个反斜杠
···
## Post请求
* x-www-form-urlencoded方式
curl localhost:9999/api/daizhige/article -X POST -H
"Content-Type:application/json" -d 'hello=world'
* json方式
curl localhost:9999/api/daizhige/article -X POST -H
"Content-Type:application/json" -d '{"title":"comewords","content":"articleContent"}'
* multiPart
curl localhost:3000/api/multipart -F raw=@raw.data -F hello=world
示例:
curl -k https://211.159.201.91:443/api/upLoadGyroscopeInfo -H "token:&HSj#kLJ6O%aeNDi" -F file=@bin.txt
最后
以上就是精明硬币为你收集整理的curl get json数据格式的全部内容,希望文章能够帮你解决curl get json数据格式所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复