Unable to tunnel through proxy. Proxy returns HTTP/1.1 503 Service Unavailable

匿名 (未验证) 提交于 2019-12-03 08:54:24

问题:

I want to connect to an intranet server, the url that I need to connect is:

URLConnection conn = new URL("https://mywebsite").openConnection(); 

When I reach to the connect method call through:`

conn.connect(); 

I'm getting 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 published on the net, but without any luck.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!