String url="http://www.baidu.com/";
HttpClient httpClient=new DefaultHttpClient();
HttpGet request=new HttpGet(url);
HttpResponse response=httpClient.execute(request);
HttpEntity entity=response.getEntity();
String msg=EntityUtils.toString(entity);
为什么得到的东西不全,只是其中的一部分代码?求原因
|
|