首页 > 其他分享 >curl发送post请求

curl发送post请求

时间:2022-11-22 12:05:25浏览次数:45  
标签:prop 发送 application json id curl Type post


>> curl -g -i -X POST x.x.x.x:11115/backend/prop-present/ -H "Content-Type: application/json" -d '{"game_id":9, "user_id": 33793266, "open_id":"oZKx35BPtZm_ANPLuqvjAVW7rQNo", "props": [{"prop_id":20, "prop_num":-500, "expire_in":-1}]}'

返回:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Vary: Origin
Date: Fri, 29 Nov 2019 09:50:04 GMT
Content-Length: 21

{"message":"success"}


标签:prop,发送,application,json,id,curl,Type,post
From: https://blog.51cto.com/u_11553781/5877563

相关文章