简单介绍一下通过shell命令调用http接口(curl方式)先上样例样例介绍参数详解
先上样例
1、curl -H Content-Length:0 -X GET http://127.0.0.1:8080
2、curl -H Content-Type: application/json -H connection:Keep-Alive -s -X POST -d '{id:1,type:0}' http://127.0.0.1:/8080/xxx/xxx
3、RESULT=`curl -H Content-Type: application/jso
1