cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Simple cookie interface!

From: Peteris Krumins [Newsgroups] <pknewsgroups_at_gmail.com>
Date: Thu, 28 Jul 2005 11:34:14 +0300

Daniel Stenberg wrote:

> On Wed, 27 Jul 2005, Peteris Krumins [Newsgroups] wrote:
>
>> Okay. I have made the changes and added documentation for the
>> interface setopt/getinfo options in man pages.
>
>
> Great!

As cookies are now erased with magic string "ALL" i forgot to change
that in cookie_interface.c example program.
This one-line patch fixes that.

P.Krumins

Index: cookie_interface.c
===================================================================
--- cookie_interface.c (revision 48)
+++ cookie_interface.c (working copy)
@@ -64,7 +64,7 @@
     print_cookies(curl);
 
     printf("Erasing curl's knowledge of cookies!\n");
- curl_easy_setopt(curl, CURLOPT_COOKIELIST, NULL);
+ curl_easy_setopt(curl, CURLOPT_COOKIELIST, "ALL");
 
     print_cookies(curl);
 
Received on 2005-07-28