带body的POST请求在postman和curl中的使用

1. 在postman中使用带body的POST

2. 在curl中使用带body的POST

curl -H "Content-Type:application/json" -XPOST http://localhost:8080/api/city -d '{ "id":"3", "provinceId":"3", "cityName":"zhuhai", "description":"live in zhuhai"}'

发布了8 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/xnfreedom/article/details/86596090
今日推荐