cURL / Mailing Lists / curl-users / Single Mail

curl-users

cookies on multiple URLs (was Re: ANNOUNCE: curl 7.8)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 8 Jun 2001 08:34:05 +0200 (MET DST)

On Fri, 8 Jun 2001, Pierre Z. wrote:

> As for successfully managing cookies on a "multi-URL command line", my
> doubt is about the fact that the Server, while hopping from page to page,
> may send back a growing number of different cookies, and therefore I'm
> wondering how cURL can decide to save/accumulate the cookies as they come
> and "regurgitate" them to the Server in the appropriate way and at the
> right time - all of this from a single command line, just using "-b" and
> not saving cookies temporarily to files...
>
> Are you saying that cURL is able to do this, no sweat?

Short answer: Yes.

Longer: curl follows the netscape cookie spec. Newer cookies with the same
name for the same path and domain should override older ones. The most recent
version of a cookie is the one that should get sent back to servers when used
in requests.

If this doesn't work, it is a bug.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-06-08