hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vijay kumar" <gm_vijayku...@hotmail.com>
Subject Re: How to use session cookie across connections
Date Tue, 25 Mar 2003 16:46:49 GMT
Oleg

Thanks for ur response.

Actually my problem is I got a class file where httpclient is initialized 
and used. During login I am getting a session cookie and able to access 
pages.

When I try to call the class again to make another requests my cookie is 
gone. As I am new to httpclient I am not sure whats happening. Is there any 
way to store the cookie which I can use for subsequent connections.

thanks a lot
Vijay.



>From: Oleg Kalnichevski <o.kalnichevski@dplanet.ch>
>Reply-To: "Commons HttpClient Project" 
><commons-httpclient-dev@jakarta.apache.org>
>To: Commons HttpClient Project <commons-httpclient-dev@jakarta.apache.org>
>Subject: Re: How to use session cookie across connections
>Date: 25 Mar 2003 17:28:22 +0100
>
>Vijay
>
>HttpClient class does preserve HTTP state information across
>connections. You may want to consult the documentation on HttpState
>class for more details
>
>This sample may also be of some help
>
>http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/FormLoginDemo.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
>
>Cheers
>
>Oleg
>
>
>
>On Tue, 2003-03-25 at 13:25, vijay kumar wrote:
> > Hi
> >
> > How to handle a session cookie across connections. In my program I will 
>be
> > getting a seesion cookie during initial stage of login and I want to use 
>the
> > same session cookie for my other requests.
> >
> > Any samples available???
> >
> > Thanks,
> > Vijay
> >
> > _________________________________________________________________
> > Cricket - World Cup 2003 
>http://server1.msn.co.in/msnspecials/worldcup03/
> > News, Views and Match Reports.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
>commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
>commons-httpclient-dev-help@jakarta.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: 
>commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: 
>commons-httpclient-dev-help@jakarta.apache.org
>


_________________________________________________________________
Get ball by ball action on your desktop. 
http://server1.msn.co.in/msnspecials/cricketdownload/contest.asp Get Hutch 
MSN Cricketer


Mime
View raw message