远程访问

时间:2014-06-06 11:45:51   收藏:0   阅读:186

HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(baseUrl + action);
HttpResponse response = httpclient.execute(httpget);
retStr = EntityUtils.toString(response.getEntity());

 

所用到的jar 包:httpcore httpclient
http://www.cnblogs.com/Wen-yu-jing/p/3552154.html

远程访问,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!