Re: Session handling in HttpClient

2008-11-23 Thread Oleg Kalnichevski
Al Byers wrote: In working with this problem I am seeing a difference in what the BasicCookieStore stores and what is in the headers. Here is my code: BasicHttpContext localContext = new BasicHttpContext(); // Create a local instance of cookie store

Re: Session handling in HttpClient

2008-11-23 Thread Oleg Kalnichevski
Al Byers wrote: I was able to work around my problem by grabbing the JSESSIONID header out of the first response and sticking it on the url of the second request. I would prefer to find the right solution. When I take the JSESSIONID header from the first response and add it as a header to the

Re: Session handling in HttpClient

2008-11-21 Thread Al Byers
In working with this problem I am seeing a difference in what the BasicCookieStore stores and what is in the headers. Here is my code: BasicHttpContext localContext = new BasicHttpContext(); // Create a local instance of cookie store CookieStore cookieStore =

Re: Session handling in HttpClient

2008-11-21 Thread Al Byers
I was able to work around my problem by grabbing the JSESSIONID header out of the first response and sticking it on the url of the second request. I would prefer to find the right solution. When I take the JSESSIONID header from the first response and add it as a header to the second request with:

Re: Session handling in HttpClient

2008-11-20 Thread Al Byers
I just signed on and found this in the archives: On Fri, 2008-11-07 at 03:48 -0800, Eugene Kondrashev wrote: I see.. But, how can I recognize the session id cookie? I am afraid I do not have any good news for you. In theory server can use any label to designate session id cookie. Is there

Re: Session handling in HttpClient

2008-11-11 Thread Oleg Kalnichevski
On Fri, 2008-11-07 at 03:48 -0800, Eugene Kondrashev wrote: I see.. But, how can I recognize the session id cookie? I am afraid I do not have any good news for you. In theory server can use any label to designate session id cookie. Is there some standard way to get sessionID cookie through

Re: Session handling in HttpClient

2008-11-05 Thread Eugene Kondrashev
://www.nabble.com/Session-handling-in-HttpClient-tp18106268p20343451.html Sent from the HttpClient-User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session handling in HttpClient

2008-06-25 Thread Quintin Beukes
Well, sessions are server related. Let me give you an idea of how sessions work: In this example I will use SESSID as the cookie name, but this can be configured, and differs in all implementations. First Request 1. Client visits server for the first time. 2. Server checks if the SESSID is set,

Re: Session handling in HttpClient

2008-06-25 Thread Wierd Programmer
Hi Quitin, Thanks for the response. That does help me understand clearly about sessions. I will try to implement the same and incase of any questions, will get back to you. Thanks again for your time. Regards, Jade On Wed, Jun 25, 2008 at 12:47 PM, Quintin Beukes [EMAIL PROTECTED] wrote: