cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Behavior of -D and -c options in curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 16 Jan 2007 15:44:36 +0100 (CET)

On Tue, 16 Jan 2007, imran shaik wrote:

> A small modification to my question:
> Does -D dumps cookies for each URL or at the end of handling all the URLs?

-D dumps the headers to the file as soon as they are received.

> What is the behavior of -c when writing cookies?

They are written to the file when the 'CURL' handle is closed, which is at the
end of all the redirects.

> curl -L -c "hello" http://foo.bar.com
>
> Suppose the above command follows 3 URLs seeing Location in header.
>
> I need a timeline status of the contents of "hello" file after each URL is
> followed.

Then -c won't be your friend.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-16