我试图分析此网站与Jsoup:http://www.listofnewspapers.com/2014/04/site-map.html但我得到这个错误:HTTP错误获取URL
For ' http://www.listofnewspapers.com/2014/04/site-map.html ': HTTP error fetching URL"
我相信错误是在connect(URL).get()
发生。
我打印状态码用于调试目的,我得到200
。
我尝试过与其他多个网站,他们连接好。
的可能的复制【JAVA JSoup错误获取URL] (https://stackoverflow.com/questions/36780047/java-jsoup-error-fetching-url) –