我想连接到Intranet服务器,我需要连接的URL是:
URLConnection conn = new URL("https://mywebsite").openConnection();
Run Code Online (Sandbox Code Playgroud)
当我通过以下方式调用connect方法时:`
conn.connect();
Run Code Online (Sandbox Code Playgroud)
我收到以下异常:
java.io.IOException: Unable to tunnel through proxy. Proxy rerurns HTTP/1.1 503 Service Unavailable"
at sun.net.www.protocol.httpHttpURLConnection.doTunneling
Run Code Online (Sandbox Code Playgroud)
我怎么能解决这个例外,我已尝试过在网上发布的许多解决方案,但没有任何运气.