比如如下请求的示例:
http -b --form POST http://rnhg.hkplant.net/mobile/wapi/index.php op=login appid=99000809734051 uid=0 password=e10adc3949ba59abbe56e057f20f883e username=15537422878
-b 为只返回body内容,--from POST 模拟一个post请求 ,后面为POST参数,
返回json内容如下:
{
"code": 0,
"msg": "success",
"result": {
"mobile": "15537422878",
"parent_id": "289163",
"parent_name": "梁亚伟",
"realname": "梁朝伟",
"regtime": "1478316172",
"token": "f8c7f90721c4a2b019fa",
"uid": "289166",
"user_photo": "http://rnhg.hkplant.net/mobile/themes/tianxin100/images/photo.png"
}
}