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 12:14:47 +0100 (CET)

On Tue, 16 Jan 2007, imran shaik wrote:

> I would like to know the basic difference between -D and -c options when
> used to read cookies from files saved using -D or -c.

-D dumps headers and does not include all the details about cookies that -c
will. -D dumps headers to it will contain all info that the headers includes,
while -c writes cookies.

> Why is it suggested to use -c rather than -D to store cookies?

-c

> What is the behvior of these options when combined with a -L option?

-L does in no way change their behaviours.

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