cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Inconsistency with cookies initialization?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 29 Jul 2007 15:04:57 +0200 (CEST)

On Sun, 29 Jul 2007, Shmulik Regev wrote:

> I've noticed the following behavior with cookies initialization which looks
> a bit inconsistent to me. If one initializes a plain-vanilla easy handle
> without setting any special cookie options, the SessionHandle cookies
> pointer is 0. However, if one uses CURLOPT_SHARE, then the cookies pointer
> is initialized. This happens regardless of the share specific options, i.e.
> regardless of whether the share manages cookies or not.

That sounds like a bug to me.

The share should only be a container for data instead of in the easy handle,
so if no cookie stuff has been enabled for the handle that uses the share, I
don't think it should have the cookie pointer initialized...

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