protected static String refineUrlPath(String url){
		String endStr = "";
		if(url == null || url.equals("")){
			return "";
		}
		String headReg = "(http://|https://)(.*)";
		String headStr = "";
		Pattern p = Pattern.compile(headReg);
		Matcher m = p.matcher(url);
		if(m.matches()){
			headStr = m.group(1);
			url = m.group(2);
		}
		if(url.charAt(url.length() - 1) == '/'){
			endStr = "/";
		}
		String[] dirs = url.split("/");
		int cIndex = 0;
		List<String> pathDirList = new ArrayList<String>();
		
		while(cIndex < dirs.length){
			if(dirs[cIndex].equals("..")){
				pathDirList.remove(pathDirList.size() - 1);
				//System.out.println(url);
			}else{
				if(dirs[cIndex].equals(".")){
				}else{
					pathDirList.add(dirs[cIndex]);
				}
			}
			cIndex++;
		}
		StringBuilder sb = new StringBuilder();
		sb.append(headStr);
		boolean first = true;
		for(String cDir : pathDirList){
			if(!first){
				sb.append("/");
			}else{
				first = false;
			}
			sb.append(cDir);
		}
		sb.append(endStr);
		return sb.toString();
	}