谷歌插件postman如果不能用,就用git命令发送post请求

 curl -X POST --data '{"name":"zfpx"}' -H 'Content-Type:application/json' http://localhost:9090/users 
 curl -X POST -d '{"name":"zfpx"}' -H 'Content-Type:application/json' http://localhost:9090/users 
 这里--data = -d
curl --help 可以查询帮助文档来找到对应的命令
posted @ 2016-06-25 11:09  kpengfang  阅读(531)  评论(0)    收藏  举报