cURL / Mailing Lists / curl-library / Single Mail


Re: perl libcurl refuses to write cookie file

From: Cris Bailiff <>
Date: Sun, 13 Jul 2003 13:34:56 +1000

On Sat, 12 Jul 2003 11:35 pm, Maarten Dekker wrote:
> Hi all,
> Libcurl won't write cookies to a cookie file!
> What am I doing wrong here?
> The perl script is below.
> libcurl version: Testing curl version libcurl 7.8 (OpenSSL 0.9.6b) (ipv6
> enabled)

AFAIK, the COOKIEJAR option was added in libcurl v7.9

> I have also created a file manually(touch cookies.txt) this also did not
> help.
> $curl->setopt(CURLOPT_HTTPHEADER, \@myheaders);
> $curl->setopt(CURLOPT_COOKIEJAR,cookies.txt);

Also, Iunless you put in the quotes around "cookie.txt", I don't think perl
will be doing quite what you expected.


This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
Received on 2003-07-13