【发布时间】:2014-06-09 13:57:07
【问题描述】:
我正在使用 JSoup 使用此页面中的凭据进行连接:
https://www.particulares.santandertotta.pt/bepp/sanpt/usuarios/loginrefeicao/0,,,0.shtml
它会重定向到一个新页面:
https://www.particulares.santandertotta.pt/pagina/indice/0,,841_1_2,00.html
其中包含一个 Iframe,其中包含我需要的信息。 iframe的url是:
问题是我无法连接到该页面。我用来输入这个 iframe 的代码就是这个
//the variable 'data' are the credentials stored in a map
Response response = Jsoup.connect("https://www.particulares.santandertotta.pt/bepp/sanpt/tarjetas/listadomovimientostarjetarefeicao/0,,,0.shtml").data(data).timeout(15000).method(Method.GET).execute();
每次我运行这段代码并解析结果时,它都会给我一些消息,说我的访问被拒绝是由于安全原因长时间保持连接。
有人可以向我解释我做错了什么吗? 谢谢。
【问题讨论】:
-
@webaib 我没有任何例外
-
@DiogoPinheiro 你解决问题了吗?