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?