cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: COOKIES EXPIRES AFTER CERTAIN TIME

From: siddharth <sidd_at_americanmicrosemi.com>
Date: Tue, 3 Jul 2007 12:34:29 -0400

Yeah its true I login through browser grab the cookie through httpliveheader
and use it into the code.

I was thinking to automate this process that curl would relogin and grab the
cookie and then download the files

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Alessandro Vesely
Sent: Tuesday, July 03, 2007 6:00 AM
To: the curl tool
Subject: Re: COOKIES EXPIRES AFTER CERTAIN TIME

Daniel Stenberg wrote:
> On Mon, 2 Jul 2007, siddharth wrote:
>
>> Thanks for your quick reply. I mean to say that I am able to download
>> the files but after sometimes the cookies expires and I am using the
>> --trace-ascii option where it is showing 0% in all the columns means
>> the cookies get expire after a certain time and I need to relogin
>> because of which the --trace-ascii options show's me zero in all the
>> columns.
>
> Top-posting makes it very hard to follow this discussion. What were we
> talking about again?
>
> Cookies expire at the set time, I don't understand how that is a curl
> problem?

If I remember Siddarth's post correctly, he logs in using his browser
rather than curl, and the cookies he gets have a limited duration.

Perhaps, it is not easy to find an example on how to get cookies with
curl and then use them in the next connection, i.e. how to combine
options -b/--cookie <filename>, -c/--cookie-jar <filename>, and possibly
-L/--location.
Received on 2007-07-03