Re: libcurl (cookies across cURL session). . .?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom,

I tried writing to a local file(./cache/cookiejar), but to no avail. I'll give /tmp a try to see if that location makes any difference. Permissions aside, I should be able to write where I wish, correct?

Thanks,
Mike

On Sep 23, 2006, at 7:43 AM, php-general-digest-help@xxxxxxxxxxxxx wrote:

From: Tom Atkinson <nibbler@xxxxxxxxxxxxxxxxxxxxxx>
Date: September 23, 2006 7:42:32 AM EDT
To: php-general@xxxxxxxxxxxxx
Subject: Re:  libcurl (cookies across cURL session). . .?


Use cURL's own cookie handling features.

curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');

That will store the cookies in the file and read them from there next time. /tmp may or may not be a suitable location.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux