java - Connecting to Iframe using JSoup -
I am using Jesup to use credentials on this page:
and redirects to a new page:
There is an ifr in which I have the necessary information. The URL of the iframe is:
The problem is that I can not connect to that page. The code that is using this code to enter the IFrame is
// Variable 'data' are the credentials stored in a map response response = Jsoup.connect ("https: // www .particulares.santandertotta.pt / bepp / sanpt / tarjetas / listadomovimientostarjeetare.fi / 0 ,,, 0.shtml ") data (data) .timeout (15000) .method (Method.GET) .execute (); Every time I run this code and parse the result, it tells me some kind of message that my use was forbidden for security reasons to maintain connections for long periods of time.
Can someone explain to me what I am doing wrong? Thank you.
Can anyone explain to me what I am doing?
In such a situation, to find out what is going on under the cover, Jasp can be doing something wrong, follow those steps:
Step 1 / Fire your favorite browser
Empty its cache Start your Developer Console and ask your browser to show every request you make and the server and the replacement header between them. IMO, you can use a more solid tool to spy on your browser's requests.
Step 2 / Run your code with JSW
Now it's time to spy on your code with
step 3 / spy requests Compare
For each of your requests made by your browser and your JSOP code is compared with them, compare the exchange on behalf of the headers You will find that the cookie set by the server is again by Jsoup Has not been changed. You can find that the server tries to challenge your code and if your browser passes through the challenge, it fails ...
force go with you ...;)
Comments
Post a Comment