• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Jsoup - Login and redirection

Posts: 10
Eclipse IDE MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
    Bookmark Topic Watch Topic
  • New Topic