我正在尝试使用 Jsoup 库解析网页。但是由于它的地址就像主机和端口一起(http://host:port
)(Stackoverflow 不允许写确切的东西)Jsoup 抛出异常并且不解析页面。
这是页面地址:
这是异常日志:
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=-1, URL=http://sunucu2.radyolarburada.com:5000/
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:435)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:410)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:164)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:153)
at Tester.getSong(Tester.java:136)
at Tester.main(Tester.java:150)