public static String getContentFormUrl(String url)  
    {  
        /* ʵһHttpClientͻ */ 
        HttpClient client = new DefaultHttpClient();  
        HttpGet getHttp = new HttpGet(url);  
  
        String content = null;  
  
        HttpResponse response;  
        try 
        {  
            /*Ϣ*/ 
            response = client.execute(getHttp);  
            HttpEntity entity = response.getEntity();  //
  
            VisitedUrlQueue.addElem(url);  
  
            if (entity != null)  
            {  
                /* תΪıϢ */ 
                content = EntityUtils.toString(entity);  
  
                /* жǷҳԴ뵽ص */ 
                //ǷƥԼӸʽ&&ǷҪصĿ
                if (FunctionUtils.isCreateFile(url) && FunctionUtils.isHasGoalContent(content) != -1)  
                {  
                    FunctionUtils.createFile(FunctionUtils.getGoalContent(content), url);  
                }  
            }  
  
        } catch (ClientProtocolException e)  
        {  
            e.printStackTrace();  
        } catch (IOException e)  
        {  
            e.printStackTrace();  
        } finally 
        {  
            client.getConnectionManager().shutdown();  
        }  
          
        return content;  
    }