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
时间: 2024-10-06 19:07:53