public static boolean WGet(String url, String location,
			String location_temp) {
		boolean ret=true;
		String retData=getContent(url);
		System.out.println(url+":return:"+retData);
		if (retData==null)
		{
			ret=false;
			return ret;
		}
		retData=retData.trim();
		if (retData.length()==0)
		{
			System.out.println("绯荤粺鍙戠敓閿欒!鎺ュ彛杩斿洖鏁版嵁涓虹┖.");
			ret=false;
			return ret;
		}
		if ((retData.indexOf("error")>-1) || (retData.indexOf("Exception")>-1) )
		{
			ret=false;
			return ret;
		}
		try {
			FileOutputStream fos = new FileOutputStream(location_temp);
			OutputStreamWriter writer = new OutputStreamWriter(fos);
			writer.write(retData);
			writer.close();
			fos.close();
			File temp = new File(location_temp);
			File filedir = new File(temp.getParent());
			if( !filedir.exists() ) 
			{
				filedir.mkdirs();
			}
			if (temp.exists()) {
				File dest = new File(location);
				File dest_bak = new File(location+"_bak_"+System.currentTimeMillis());
				if (dest.exists())
				{
					dest.renameTo(dest_bak);
					dest.delete();
				}
				temp.renameTo(dest);
			}
		} catch (Exception e) {
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		
		return ret;
	}