Linux服务器上使用curl命令发送报文

报文格式如下:

curl -l -H "Content-type: application/json" -X POST -d 'postdata' http://172.20.105.53:8888/web_project/pay/test

其中postdata为具体的报文内容,如果里面有双引号,则外面使用单引号引起来。 最后一个是URL。