cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cookie and CURLOPT_COOKIEFILE

From: Jerry G. Chiuan <jerry_at_oridus.com>
Date: Fri, 19 Sep 2003 13:24:04 -0700

> I am not a Windows user ( thank heavens for that! ) but you might try this:
>
> curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "NUL");
>
> "NUL" is a special "black hole" filename on windows.
> ( the same as "/dev/null" on unix )

thanks, Jeff
I have used CURLOPT_HEADERFUNCTION w/ CURLOPT_WRITEHEADER to fetch "Set-Cookie" myself, instead of using
CURLOPT_COOKIEFILE w/ empty filename.

- Jerry

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-20