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

From: Date: Sat, 23 Sep 2006 14:09:31 +0000
Subject: Re: libcurl (cookies across cURL session). . .?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242145@lists.php.net to get a copy of this message
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@lists.php.net wrote:
From: Tom Atkinson <nibbler@coppermine-gallery.net> Date: September 23, 2006 7:42:32 AM EDT To: php-general@lists.php.net Subject: Re: [PHP] 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.


« previous php.general (#242145) next »