private BufferedReader makeRequest() {
		URL request;
		String authtext = "";
		if(!mUser.equalsIgnoreCase("") && !mPass.equalsIgnoreCase("")) // If the user provided both username and password, include them.
			authtext = mUser + ":" + mPass + "@";
		
		URL url;
		try { // Check that the URL is ok and form the request URL.
			url = new URL(mUrl);
			System.out.println(url.getProtocol() + "://" + authtext +
					mUrl.substring(url.getProtocol().length() + 3) +
					"/wfs?service=wfs&version=1.1.0&request=GetCapabilities");
			request = new URL(url.getProtocol() + "://" + authtext +
					mUrl.substring(url.getProtocol().length() + 3) +
					"/wfs?service=wfs&version=1.1.0&request=GetCapabilities");
		} catch (MalformedURLException e) {
			mUi.displayAlert(GSInsert.URL_WARNING_TITLE, GSInsert.URL_WARNING_MESSAGE, JOptionPane.WARNING_MESSAGE);
			return null;
		}
		
		/* Perform the request. */
		HttpURLConnection con;
		try {
			con = (HttpURLConnection) request.openConnection();		 
			BufferedReader response = new BufferedReader(
			        new InputStreamReader(con.getInputStream()));
			return response;
		} catch (IOException e) {
			e.printStackTrace();
			mUi.displayAlert(GSInsert.CON_ERROR_TITLE, GSInsert.CON_ERROR_MESSAGE, JOptionPane.WARNING_MESSAGE);
			return null;
		}		
	}