首页 > Web开发 > 详细

[linux] curl 命令post json数据

时间:2021-07-27 20:42:01      阅读:23      评论:0      收藏:0      [点我收藏+]

curl经常使用的命令,想要post json类型的数据,要注意header头和data数据

 

curl -XPOST sopans.com/test -H content-type:application/json -d {
    "encrypt_tel":"c64ac2a6b2d149a50fb2634c7b18514d",
    "clue_createtime":"2021-7-20 10:58:33",
    "clue_type":"student",
    "city_code":"5"
} \

 

[linux] curl 命令post json数据

原文:https://www.cnblogs.com/taoshihan/p/15067543.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!