2012年10月21日
摘要: 利用HttpClient 得到页面内容方法:HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(“http://www.google.com”);HttpResponse response = httpclient.execute(httpget);HttpEntity entity = response.getEntity();String htmlContent=EntityUtils.toString(entity);System.out.prinln(htmlContent); / 阅读全文
posted @ 2012-10-21 20:32 adolfmc 阅读(326) 评论(0) 推荐(0) 编辑