标签:android http os 使用 sp on 数据 ad line
HttpGet request = new HttpGet(
"http://xxxx.xxx/xxxxx");
request.setHeader("Cookie", "key=" + “xxxxxxxxxxx”);
HttpResponse response = httpclient.execute(request); // 模拟请求
int code = response.getStatusLine().getStatusCode();// 返回响应码
InputStream in = response.getEntity().getContent();// 服务器返回的数据
System.out.println(inputStreamToString(in));
标签:android http os 使用 sp on 数据 ad line
原文地址:http://www.cnblogs.com/xubuhang/p/4143828.html