public String getPage(String url, String queryString) { 
         StringBuffer response = new StringBuffer(); 
         HttpClient client = new HttpClient(); 
         HttpMethod method = new GetMethod(url); 
         try { 
             //gethttpĬϱ룬ûκ⣬ֱ󣬾ͳΪ%ʽַ 
             method.setQueryString(URIUtil.encodeQuery(queryString)); 
             client.executeMethod(method); 
             if (method.getStatusCode() == HttpStatus.SC_OK) { 
            	 BufferedReader reader = new BufferedReader(new InputStreamReader(method.getResponseBodyAsStream(), "utf-8")); 
                 int line; 
                 while ((line = reader.read()) != -1) { 
                 	response.append((char)line); 
                 } 
                 reader.close(); 
                 
                 
                 /*File file = new File("D:\\baidu"+ n +".html"); 
         	     n++; 
                 file.delete();  
                 file.createNewFile();  
         	     BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "utf-8"));  
                 writer.write(response.toString());  
                 writer.close();*/
             } 
         } catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}  finally { 
                 method.releaseConnection(); 
         } 
         return response.toString(); 
 }