I want to connect to an intranet server, the url I need to connect is:
URLConnection conn = new URL("https://mywebsite").openConnection();
When I get to the connection method call, do the following: `
conn.connect();
I get the following exception:
java.io.IOException: Unable to tunnel through proxy. Proxy rerurns HTTP/1.1 503 Service Unavailable"
at sun.net.www.protocol.httpHttpURLConnection.doTunneling
How can I solve this exception, I have tried many solutions posted online but with no luck.
source
share