CURL 发送POST请求

CURL 发送POST请求

curl -H "Content-Type: application/json" 
    -X POST 
    -d '{"user_id": "123", "coin":100, "success":1, "msg":"OK!" }' 
    "http://192.168.0.1:8001/test"
参数内容
-H 请求头
-d POST内容
-X 请求协议

 

curl  -X post -d '[{"name":"ww"}]' -H "content-type:appliacation/json" 0.0.0.0:5566/v1/samples

posted on 2020-04-30 13:44  王大拿  阅读(678)  评论(0)    收藏  举报

导航