如何在shell中curl一个带变量的post请求
2个回答
2017-01-15
展开全部
示例如下:
id=1111
name="ct"
curl http:你的地址 -H
"Accept: application/json" -H "Content-Type: application/json" -d
'{"kpId":"'"$id"'","kpName":"'"$name"'","description":"desc","path":"0-1-","sort":1,"version":1,"parentKPId":
1}'
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询