• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache HTTP Client SSL empty sessionID

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using a Java program I made, that makes use of Apache HTTP Client, to access a secure website (https).
When sending a request to this https:// url, I get a HTML response with an error message (a text message the site itself returns saying I probably made a typo).
When doing the same in a browser, I do get to see the page that I want. I'd like to get the same result when accessing it using my program.

In both cases, I am using a local debugging proxy, that tells me there is only one thing different: in my Java approach, I am not setting a SSL sessionID: it is 'empty'.
When using the browser, the sessionID is set: it is equal to a SSL sessionID, provided in the response of a previous request.
Now, this program I made works flawlessly with regular http requests and parameters. I just really do not know how to get the SSL sessionID from a response, and to make sure it is there in the next request?

Thanks!
Kjeld
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried looking through search results for "Java HTTPS"? Seems like you might find a few of those links useful.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic