Jakarta.commons.httpclient session handling
Posted on 2004-08-25
I am using jakarta.commons.httpclient to login and perform some operations in a website.
Basically I need to login, and then perform 2 post requests.
However, since I am performing the requests one at a time, and although I can login the next requests get me redirected to a "Not logged in" page.
I noticed that from the login I receive a cookie called JSESSIONID (don't really know if the name is set by HttpClient() or the site itself).
Perhaps I need to send the session id with the next requests?
If so, how can I do it?