cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: perl libcurl refuses to write cookie file

From: Cris Bailiff <c.bailiff+curl_at_devsecure.com>
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.

Cris

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET