Re: [PHP] libcurl (cookies across cURL session). . .?

This is a discussion on Re: [PHP] libcurl (cookies across cURL session). . .? within the PHP General forums, part of the PHP Programming Forums category; Tom, I tried writing to a local file(./cache/cookiejar), but to no avail. I'll give /tmp a try ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-23-2006
Michael Williams
 
Posts: n/a
Default Re: [PHP] libcurl (cookies across cURL session). . .?

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.
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0