cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Which cookies does curl_easy_getinfo() with param CURLINFO_COOKIELIST return ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 10 Mar 2008 23:11:11 +0100 (CET)

On Mon, 10 Mar 2008, Stefan Krause wrote:

> I'm using libCurl via the multi interface and have one multi handle with two
> easy handles contained in it. Which set of cookies is returned when calling
> curl_easy_getinfo() with param CURLINFO_COOKIELIST ? Only the cookies
> specific to the particular easy handle oder ALL cookies curl knows about?

Cookies are always easy-handle specific, unless you use the share interface to
make more than one easy handle use the same pool of cookies.

> I suppose that cookies are handled separately for each easy handle and that
> each easy handle only stores the cookies which are received by HTTP
> operations done on that handle. Is that correct?

Yes!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-10