为什么根据一个url获取网页的数据,但是获取不全,是怎么回事!
String url="http://www.baidu.com";
HttpClient client=new DefaultHttpClient();
HttpGet request=new HttpGet(url);
HttpResponse response = client.execute(request);
HttpEntity entity = response.getEntity();
String msg = EntityUtils.toString(entity);
在java程序中,可以获取全,但是在android程序中就获取不全了,这是什么原因?
|
|