Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsoup - Login and redirection  RSS feed

 
Igor Santos
Greenhorn
Posts: 10
Eclipse IDE MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently using the JSoup API to manage a website's connection. Though I correctly login to the site, and am redirected to a success page, I can't manage the session in any way... I think the root of my problem is SSL. I managed to go past this using THIS piece of code:

As I'm not posting anything, and I have an urgency to do this, I figured I'd use this while I don't get a robust solution. And now to my main problem... After I connected with JSoup, and was redirected to the success page, I can't in ANY WAY keep the session up. As soon As I try to get data from another web page from the same website I get the 403 http code. Here's the piece of code I'm using:

So now I humbly ask of you, Java elders, how may I redirect myself to another page using the same session?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!