Android.Http
来源:互联网 发布:ubuntu 显示文件列表 编辑:程序博客网 时间:2024/06/05 22:33
public static String getResultForHttpGet(String url) throws ClientProtocolException, IOException
{
String result="";HttpGet httpGet=new HttpGet(url);//与HttpPost区别所在,这里是将参数在地址中传递
HttpResponse response=new DefaultHttpClient().execute(httpGet);
if(response.getStatusLine().getStatusCode()==200){
HttpEntity entity=response.getEntity();
result=EntityUtils.toString(entity, HTTP.UTF_8);
}
return result;
}
0 0
- Android Http
- android - http
- android http
- android-http
- Android http
- android http
- android Http
- Android http
- android http
- Android HTTP
- android http
- Android.Http
- Android Http
- android-async-http(http通信)
- [Android]浅析Http框架 - Android-Async-http
- android http post 参数
- android http post请求
- android http上传文件
- 内部类的总结
- 顺时针输出一个二维数组的内容
- 4月17日学习笔记-有关控件的属性修改
- Long Polling Requests, Servlet 3.0, and DeferredResult
- java基本数据类型
- Android.Http
- 机器学习中的常用分布
- Smart Client Software Factory 映射业务实体到界面元素
- SharePoint 2013 可视化工作流设计图解---如何删除邮件错误。
- Tomcat 在基于 Unix 系统上无法绑定80端口的解决方法
- About Bayesian Theory
- 计算多项式系数杨辉三角
- Smart Client Software Factory 如何发布事件
- (c语言)字符串的大小写字母转化函数