• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Jsoup - Login and redirection

 
Greenhorn
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?
 
Hey cool! They got a blimp! But I have a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic