linux curl -x post,get请求命令详解
453人浏览 2024-06-06 07:43:13
POST请求:(header参数放:-H ""里面,参数放到: -d""里面)
curl -X POST "http://localhost:8088/open/api/pushCloseInfo" -H "accept: */*" -H "csm-timestamp: 1612440895166" -H "csm-sign: sssss" -H "csm-channel: datamanage-channel" -H "Content-Type: application/json" -d "{ \"companyId\": 571168, \"companyName\": \"公司\", \"createTime\": \"2021-02-04 09:54:41\", \"desc\": \"公司访问次数达到上限,疑似违规访问,通知平台封禁账号\", \"ip\": \"\", \"level\": 1, \"projectName\": \"datamanage\", \"type\": \"\", \"uri\": \"\", \"userId\": \"\", \"userName\": \"\"}"
GET请求:(header参数放:-H ""里面,参数放到: -d""里面)
curl -X GET "http://localhost:8088/open/api/pushCloseInfo" -H "accept: */*" -H "csm-timestamp: 1612440895166" -H "csm-sign: sssss" -H "csm-channel: datamanage-channel" -H "Content-Type: application/json" -d "{ \"companyId\": 9671168, \"companyName\": \"公司\", \"createTime\": \"2021-02-04 09:54:41\", \"desc\": \"公司访问次数达到上限,疑似违规访问,通知平台封禁账号\", \"ip\": \"\", \"level\": 1, \"projectName\": \"datamanage\", \"type\": \"\", \"uri\": \"\", \"userId\": \"\", \"userName\": \"\"}"
相关推荐
-
php 实现 jwt2025-04-25 02:03:59
-
PHP导出PDF文件2025-04-25 01:46:22
-
PHP和HTML怎么结合生成PNG图片2025-04-25 01:25:05
-
nginx+njs 配置 模拟2025-04-25 01:01:51
-
nginx websocket 400 – 解决 nginx 反代 wss 出现的 400 错误
nginx websocket 400 – 解决 nginx 反代 wss 出现的 400 错误2025-04-25 00:05:03