基础用法
curl url
指定请求头
curl "http://localhost:8080/manage/user/changepassword" -H "Content-Type:application/json"
指定请求方式
curl -v -XPOST "http://localhost:8080/manage/user" -H "Content-Type:application/json"
传递json请求体
curl -XPOST -u admin:123 -d "{\"username\":\"dao\",\"password\":\"123\"}" "http://localhost:8080/manage/user" -H "Content-Type:application/json"
请求后相应数据说明
curl -v xxx