首页 > 其他分享 >curl 常用命令

curl 常用命令

时间:2023-07-30 15:35:25浏览次数:28  
标签:http param Content json 常用命令 curl localhost

curl 发送post请求 json数据

curl -X POST -H "Content-Type: application/json" -H "referer:http://localhost" http://localhost:8080/test/hello -d '{"param":"20210608"}'

-- 用本地json文件 (在执行该命令下的目录中新建param.json)
curl -X POST -H "Content-Type: application/json" -H "referer:http://localhost" http://localhost:8080/test/hello -d @param.json

  

 

标签:http,param,Content,json,常用命令,curl,localhost
From: https://www.cnblogs.com/htj10/p/17591505.html

相关文章