private void saveUrl(String filename, String urlString){
		BufferedInputStream in = null;
		FileOutputStream fout = null;
		try
		{
			try {
				HttpURLConnection conn = null;
				if(useProxy){
					System.getProperties().put("http.proxyHost", proxyHost);
					System.getProperties().put("http.proxyPort", proxyPort);
				}
				URL url = new URL(urlString);
				conn = (HttpURLConnection) url.openConnection();
				boolean isConnected = (conn.getContentLength() > 0);
				System.out.println("isConnected: " + isConnected);
				in = new BufferedInputStream(conn.getInputStream());
				String parent = new File(this.getClass().getResource("/boo.txt").getFile()).getParent();
				String folderPath = "Data/188/2012-03-21"; 
				File dir = new File(parent, folderPath);
				File newSm = new File(dir,filename);
				fout = new FileOutputStream(newSm);
				//System.out.println("filenamesdd: " + newSm);
				byte data[] = new byte[1024];
				int count;
				while ((count = in.read(data, 0, 1024)) != -1)
				{
					fout.write(data, 0, count);
				}
				fout.flush();
			} catch (MalformedURLException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		finally
		{
			if (in != null)
				try {
					in.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			if (fout != null)
				try {
					fout.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		}
	}