document.write("");

curl 命令行请求接口

 

http协议 get请求

curl http://127.0.0.1:8080/api/test

 

https协议 get请求 加-k

curl -k https://127.0.0.1:8080/api/test

 

https协议 post请求 指定Content-type 传参

curl -i -k --tlsv1 -H "Content-type: application/json;charset=UTF-8" -X POST -d '{"name": "小明","地址": "太空"}'  https://127.0.0.1:8080/api/test

 

posted @ 2023-02-01 15:15  人间春风意  阅读(226)  评论(0)    收藏  举报