cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLOPT_COOKIE : problem to reset to NULL ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Oct 2003 17:47:01 +0200 (CEST)

On Fri, 3 Oct 2003, Vincent BRONNER wrote:

> I'm using libcurl 7.10.5 and I have a problem with the CURLOPT_COOKIE
> option.

I would recommend using the curl-library mailing list instead, for libcurl
issues.

> When I set this option with any cookie string, everything works fine. But if
> I try to set it to NULL to disable cookie sending, the last configured
> cookie is still sent (I can see it in verbose informations). It seems that
> setting CURLOPT_COOKIE to NULL does not work.

Ah! I read through the code now, and I can clearly see why this happens...
I'll fix this now, and commit. Thanks for pointing this out.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-10-04