Linux 服务器使用 cURL 发送 POST 请求

-d 请求参数-H 加请求头数据,多个的话就收用多个-H

 

curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST "http://example.com/data"

posted @ 2023-05-17 11:26  教练我想打篮球  阅读(237)  评论(0)    收藏  举报