public class HttpPost extends Request
//提交的数据 HttpParams params = new HttpParams(); params.addValue("key", "value"); params.addValue("key1", "value1"); HttpPost post = new HttpPost(url, params); //获取请求结果 request.setCallback(new RequestCallback() { public void onFinish(final HttpResult result) { //TODO Log("请求结果:\n" + result.data); } }); //发起请求 APICloudHttpClient.instance().request(post);
构造器和说明 |
---|
HttpPost(java.lang.String url,
HttpParams params)
Post请求
|
限定符和类型 | 方法和说明 |
---|---|
void |
setParams(HttpParams params)
设置提交数据
|
addHeader, addHeader, setCallback, setCertificate, setNeedReport, setTimeout
public HttpPost(java.lang.String url, HttpParams params)
url
- 请求地址params
- 提交数据public void setParams(HttpParams params)
params
-