提交post data-form数据:
curl -d "phone=12345678962&checkCode=1234" "http://192.168.1.10:8080/test/webapi/account/login"
wget –post-data "phone=12345678962&checkCode=1234" "http://192.168.1.10:8080/test/webapi/account/login"
提交post json数据:
curl -H "Content-type: application/json" -X POST -d '{"phone":"12345678962","checkCode":"1234"}' http://192.168.1.10:8080/test/webapi/account/login