小编use*_*109的帖子

在android中通过http post方法发送json对象

已提供的NOT DUPLICATE.Link是旧版本."http客户端"已在api23中删除

我想发送json对象:

{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
Run Code Online (Sandbox Code Playgroud)

到网址:

http://10digimr.mobimedia.in/api/mobile_retailer/update_profile 我该怎么办?通过邮政方式?

方法:

 POST /api/mobile_retailer/update_profile
Run Code Online (Sandbox Code Playgroud)

强制关键:

{"emailId","address"}
Run Code Online (Sandbox Code Playgroud)

请求JSON:

{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
Run Code Online (Sandbox Code Playgroud)

响应:

{"message":"Mail Send","data":true,"status":200}
Run Code Online (Sandbox Code Playgroud)

android json http-post httprequest httpurlconnection

1
推荐指数
1
解决办法
2万
查看次数