public String getHtmlSource(URL url){
		String htmlSource = null;

		try {
			StringBuilder builder = new StringBuilder();
			connection = (HttpURLConnection) url.openConnection();
			connection.addRequestProperty("User-Agent", userAgent);
			connection.addRequestProperty("encoding", charset);
			connection.setConnectTimeout(60*1000);
		
			reader = new BufferedReader(
						new InputStreamReader(connection.getInputStream(), charset));
			String buffer;
			/* This is(the if) a little bit strange, but is for avoid an 
			* exception I've saw couple times here
			* */
			if(reader.ready() && reader != null)
				while((buffer = reader.readLine()) != null)
					builder.append(buffer);
	
			htmlSource = builder.toString();
		} catch (IOException e) {
			System.out.println("Ups, some problem here Houston: " + e.getMessage());
			//e.printStackTrace();
		}finally{
			if(reader != null)
				try {
					reader.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
				
		return htmlSource;	
	}