curl-library
Re: Cookie Handling using Libcurl
Date: Wed, 9 Jul 2008 12:07:08 +0200 (CEST)
On Wed, 9 Jul 2008, Atul_Aggarwal wrote:
> I am using libcurl for one of my projects in which we are using the "easy
> perform" operation.
The you're much better off on the curl-library mailing list... I suggest you
move follow-ups over to that list. I'm cc'ing this reply to there as well.
> Due to our specific requirements the authentication is valid for 1 day i.e.
> 24 hrs. Accordingly we got the changes done to get the Cookie Expiration
> time set for 24 hrs at the authentication server. We tested these setting
> using IE and it is working fine and once generated, the Cookie is valid for
> 24hrs.
>
> However we are facing an issue while connecting through Libcurl. In this
> case the Cookie is getting expired within 5-6 mins.
That sounds like if libcurl is parsing the expire date wrong in the received
cookies. What libcurl version is this? Running on Windows I presume?
> I don't have much knowledge on the Cookie handling front but want to know
>
> * If there is any difference in the way Libcurl handles the Cookie as
> compared to how it is handled in IE?
None intended, no.
> * Is there any specific settings or parameter values that need to be set in
> our code to make it work with Libcurl?
Nope. But it should be noted that the timing out of cookies is handled by the
client, so it is libcurl that is in charge of deciding when to send cookies or
not.
-- / daniel.haxx.seReceived on 2008-07-09