[linux] curl 命令post json数据

时间:2021-07-27 20:42:01   收藏:0   阅读:25

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"
} \

 

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!