使用curl命令发送POST请求
curl -X POST -H "Content-Type: application/json" -d '{"key": "value"}' http://example.com/resource/123
带认证方式发送POST请求
curl -X POST -u username:password -H "Content-Type: application/json" -d '{"key": "value"}' http://example.com/resource/123