curl用法
POST文本数据
curl.exe -H "Content-Type: text/plain" -d 'abcd' http://localhost:8080/monitor
POST JSON数据
curl.exe -i -X POST -H "Content-Type: application/json" -d '{\"data1\": \"data goes here\", \"data2\": \"data2 goes here\"}' http://localhost:3000/logger
本文介绍了如何使用curl工具发送POST请求。包括发送文本和平面JSON数据两种情况,并提供了具体的命令示例。
8366

被折叠的 条评论
为什么被折叠?



