linux curl post/put请求

案列:

-X: 请求方式

--header: 请求header

-d: 请求的数据

最后跟上请求的地址

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"message":"aaaa","exchange_id":"123" \ 
 }' 'http://localhost:8917/la-xin-activity-exchange-record-service/obsolete-exchange-record'

  

posted @ 2019-02-27 17:18  wangshunyao  阅读(8372)  评论(0编辑  收藏  举报