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
原文:http://www.cnblogs.com/Wen-yu-jing/p/3767233.html