cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Cookie Jar Question -- WAS: problem with HTTPS post of file: "Expectation failed"

From: Jake Peavy <djstunks_at_gmail.com>
Date: Wed, 23 Nov 2005 16:33:10 -0700

On 11/23/05, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Wed, 23 Nov 2005, Jake Peavy wrote:
>
> > Question for the list - is this the proper use of the -b and -c options
> so
> > the cookie jar both stores and resends cookies? I wondered about this
> > before and thought (from the docs) that -c would read & write cookies...
>
> Yes, -b reads cookies while -c writes them.
>
> Any particular wording or phrasing that lead you to believe otherwise? I'm
> always interested in clarifying the docs...
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>

First, great response time :)

Second, in trying to find where I had read that -c would do everything I
came across the following in the cURL manual:

Alas, to both read and write cookies from a netscape cookie file, you can
set both -b and -c to use the same file:

        curl -b cookies.txt -c cookies.txt www.example.com

which is pretty clear... so my bad. I thought I had gone through
everything before, but... :P

-jp
Received on 2005-11-24