JSOUP未连接到特定网页

时间:2019-07-07 08:35:54

标签: java parsing proxy jsoup

我想在连接到VPN时连接到[https://www.sierra.com/]。当我尝试连接时出现错误 java.net.SocketTimeoutException: Read timed out,但如果尝试解析google.com,则一切正常。为什么会发生?

Document page = Jsoup.connect(URL).userAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36").timeout(0).get();

0 个答案:

没有答案