try {
		 // Do Java HTTP request here
		Properties props = System.getProperties();
	   
		props.setProperty("http.proxyHost","co.proxyserver.com");
		props.setProperty("http.proxyPort","8000");
		
		props.setProperty("https.proxyHost","co.proxyserver.com");
		props.setProperty("https.proxyPort","8000");

		URL targetURL = new URL("https://www.fortify.net"); // http://www.fortify.net works properly
		HttpsURLConnection connection = (HttpsURLConnection) targetURL.openConnection();
		//Proxy proxy = new Proxy(Proxy.Type.HTTP,new InetSocketAddress("co.proxyserver.com",8000));//Doesn't work either
		//connection = (HttpsURLConnection) targetURL.openConnection(proxy); //java.io.IOException: SSL handshake failure: I/O error during system call, Unknown error: 0
 
		connection.connect();
		System.out.println("after connect");
		// read the result from the server
		BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
		StringBuilder sb = new StringBuilder();
		String line = new String();
		while ((line = reader.readLine()) != null) {
			sb.append(line + '\n');
		}
		System.out.println(sb.toString());
	} catch (MalformedURLException e) {
		System.out.println("Request failed: MalformedURLException");
		e.printStackTrace();
	} catch (ProtocolException e) {
		System.out.println("Request failed: ProtocolException");
		e.printStackTrace();
	} catch (IOException e) {
		System.out.println("Request failed: IOException");
		e.printStackTrace();
	} catch (KeyManagementException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (NoSuchAlgorithmException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}