curl发送post请求 可以通过-X指定请求类型,-d传递数据 curl -X POST -d "param1=value1¶m2=value2" http://example.com/resource 发送JSON数据,可以使用-H来指定Content-Type,并使用-d传递JSON字符串 curl -X POST -H "Content-Type: application/json"