无法使用jsoup获取页面内容

问题描述

我正在尝试使用jsoup获取url的页面内容:“ https://cm.netteller.com/login2008/Authentication/Views/Login.aspx?fi=northeast&bn=52075d37adaa8572&burlid=0924e76fe610cedd”。

下面的代码段:

String url = "https://cm.netteller.com/login2008/Authentication/Views/Login.aspx?fi=northeast&bn=52075d37adaa8572&burlid=0924e76fe610cedd";
String userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0";
Document doc = Jsoup.connect(url)
               .userAgent(userAgent)
               .timeout(10*1000)
               .followRedirects(true)
               .get();
String pageTitle = doc.title();

但是我得到的“ doc”中的响应是:

enter image description here

请启用javascript以查看页面内容

如何解决此问题或使用其他方法获取此URL的内容

我用jsoup尝试了“ WebClient”,但是得到了相同的响应。

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)