public static boolean downloadPage(String path)throws HttpException,IOException{
		InputStream input=null;
		OutputStream output=null;
		
		//õpost
		PostMethod postMethod=new PostMethod(path);
		
		//postĲ
		NameValuePair[] postData=new NameValuePair[2];
		postData[0]=new NameValuePair("name","lietu");
		postData[1]=new	NameValuePair("password","*****");
		postMethod.addParameters(postData);
		
		//ִУ״̬
		int statusCode=httpClient.executeMethod(postMethod);
		
		//״̬д(ֵֻΪ200״̬)
		if(statusCode==HttpStatus.SC_OK){
			input=postMethod.getResponseBodyAsStream();
			
			//õļ
			String filename=path.substring(path.lastIndexOf('/')+1);
			//ļ
			output=new FileOutputStream(filename);
			
			//ļ
			int tempByte=-1;			
			while((tempByte=input.read())>0){
				output.write(tempByte);
			}
			
			//ر
			if(input!=null){
				input.close();
			}
			
			if(output!=null){
				output.close();
			}
			return true;
			}
		return false;
		}