相关疑难解决方法(0)

无法通过代理隧道.代理返回HTTP/1.1 503服务不可用

我想连接到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)

我怎么能解决这个例外,我已尝试过在网上发布的许多解决方案,但没有任何运气.

java proxy ioexception tunneling

6
推荐指数
1
解决办法
9300
查看次数

标签 统计

ioexception ×1

java ×1

proxy ×1

tunneling ×1