curl¶
GET¶
curl www.baidu.com
POST请求¶
curl -d "param1=value1¶m2=value2" "http://www.baidu.com"
JSON格式的请求
curl -l -H "Content-type: application/json" -X POST -d '{"phone":"13521389587","password":"test"}' http://domain/apis/users.json
curl www.baidu.com
curl -d "param1=value1¶m2=value2" "http://www.baidu.com"
JSON格式的请求
curl -l -H "Content-type: application/json" -X POST -d '{"phone":"13521389587","password":"test"}' http://domain/apis/users.json