Hi Roland,

I am very sorry for asking silly questions.

>From the http client cookie guide I found following:

The cookie management API of HttpClient can co-exist with the manual
cookie handling. One can manually set request Cookie headers or process
response Set-Cookie headers in addition or instead of the automatic
cookie management

>From this I understood that I can manage cookies by myself.

Could you please help me in understanding the above point?

Regards,
Lalit

-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 5:15 PM
To: HttpClient User Discussion
Subject: RE: Cookie Expiry Date

Hello Lalit,

> But there is Cookie class in httpclient package.
> 
> Can't we use that for managing expiry date?

Cookies are sent by the server.
They are kept as Cookie objects on the client.
The expiry date is sent by the server.
It is kept in the Cookie object on the client.

Please read some background information on cookies.
http://jakarta.apache.org/commons/httpclient/cookies.html
http://www.w3.org/Protocols/rfc2109/rfc2109.txt
http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/http/Co
okie.html

regards,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to