Date: Mon, 7 Jan 2002 16:51:17 +0100 (MET)
On Mon, 7 Jan 2002, T. Bharath wrote:
> > You can specify the CURLOPT_COOKIEFILE with a non-existing file to make
> > curl read and send back cookies. But then it won't store any cookies
> > except in memory.
> But at the end of the session ,will it not create the file and dump it I
> have lots of threads doing the same thing so i have to specify a different
> name dynamically leading to the creation of lots of file am i right
No, the CURLOPT_COOKIEFILE option only reads cookies from the given file and
activates the cookie parser, it doesn't write any files at all. So if it
doesn't find the given file to read from, it only activates the cookie
If you want to write cookies, two options would be to either the COOKIEJAR
function or doing it yourself with the HEADERFUNCTION callback.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-07