private void clickOK() {

		String in_url_s = ((JTextComponent) urlBox.getEditor()
				.getEditorComponent()).getText();

		if ((!in_url_s.startsWith("http://"))
				&& (!in_url_s.startsWith("https://"))) {

			in_url_s = "http://" + in_url_s;

		}
		try {
			final URL inputURL = new URL(in_url_s);

			final StringBuffer out_url = new StringBuffer();
			out_url.append(inputURL.getProtocol());
			out_url.append("://");
			out_url.append(inputURL.getHost());
			if (inputURL.getPort() > 0) {
				out_url.append(":");
				out_url.append(inputURL.getPort());
			}

			final StringBuffer req_url = new StringBuffer();
			req_url.append(methodBox.getModel().getElementAt(
					methodBox.getSelectedIndex()));
			req_url.append(' ');
			try {
				// If no file is specified, add a /
				if (inputURL.getFile().isEmpty()) {
					req_url.append('/');
				} else {
					req_url.append(URLDecoder.decode(inputURL.getFile(),
					"UTF-8"));
				}

			} catch (final UnsupportedEncodingException e) {
				Logger.log("Open Location: Unsupported URL Encoding Exception", 3);
				// If no file is specified, add a /
				if (inputURL.getFile().isEmpty()) {
					req_url.append('/');
				} else {
					req_url.append(inputURL.getFile());
				}
			}
			req_url.append(' ');
			req_url.append("HTTP/");
			req_url.append(versionBox.getModel().getElementAt(
					versionBox.getSelectedIndex()));

			// Host: localhost
			req_url.append('\n');
			req_url.append("Host: ");
			req_url.append(inputURL.getHost());
			req_url.append('\n');

			// User-Agent:
			req_url
			.append("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) JBroFuzz/");
			req_url.append(JBroFuzzFormat.VERSION);
			req_url.append('\n');

			// Accept:
			req_url
			.append("Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
			req_url.append('\n');

			// Accept-Language:
			req_url.append("Accept-Language: en-gb,en;q=0.5");
			req_url.append('\n');

			// Accept-Charset:
			req_url.append("Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7");
			req_url.append('\n');

			// Keep-Alive:
			// req_url.append("Keep-Alive: 300");
			// req_url.append('\n');

			// Proxy-Connection:
			// req_url.append("Proxy-Connection: keep-alive");
			// req_url.append('\n');
			// req_url.append('\n');

			m.getPanelFuzzing().setTextURL(out_url.toString());
			m.getPanelFuzzing().setTextRequest(req_url.toString());

		} catch (final MalformedURLException e) {
			Logger.log("Open Location: Could not interpret the URL provided", 3);
		}

	}