cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Problem with cookie handling (CURLOPT_COOKIEJAR)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Dec 2002 17:44:00 +0100 (MET)

On Tue, 3 Dec 2002, Beerman wrote:

> I try to get cookies from first page and keep them in a file for next

[snip]

> curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");

[snip]

> But there is no cookie.txt file created in my home directory :(

Why would "cookie.txt" end up in your home directory? I have no idea how PHP
deals with the concept of current directory when run from a web page, but I
can't imagine it will believe it runs in your home directory anyway.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Received on 2002-12-03