private String httpGET(String requestURL) {

		//Variables
		URL request = null;
		HttpURLConnection connection = null;
		//Scanner scanner = null;
		BufferedReader reader = null;
		String s = "";
		String response = "";

		try {
			request = new URL(requestURL);
			connection = (HttpURLConnection) request.openConnection();

			connection.setRequestMethod("GET");
			connection.setUseCaches(false);
			connection.setDoInput(true);
			connection.setDoOutput(false);
			connection.setRequestProperty("Accept-Encoding", "gzip");
			connection.connect();
			if(connection.getResponseCode() == 400){
				System.out.println("Bad Responde. Maybe an invalid location was provided.\n");
				return null;
			}
			else {
				
				try {
					if(connection.getRequestProperty("Accept-Encoding") != null){
						reader = new BufferedReader(new InputStreamReader( new GZIPInputStream( connection.getInputStream())));
						while( (s = reader.readLine()) != null )
							response = s;
					} else {
						reader = new BufferedReader(new InputStreamReader( connection.getInputStream() ));
						while( (s = reader.readLine()) != null )
							response = s;
					}
				} catch (IOException e){
					System.err.println("Error: "+e.getMessage());
				} finally {
					if (reader != null) {
                        try {
                            reader.close();
                            reader = null;
                        } catch (IOException e) {
                        	System.err.println("Error: "+e.getMessage());
                        }
                    }
				}
			}
		} catch (IOException e) {
			System.err.println("Error: "+e.getMessage());		
			response = null;
		} finally {		
			connection.disconnect();
		}
		
		return response;
	}//httpGET - end