[linux] curl 命令post json数据

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

 

posted @ 2021-07-27 19:26  唯一客服系统开发笔记  阅读(1759)  评论(0编辑  收藏  举报