note 107739 modified in function.curl-setopt by danbrown

From: Date: Thu, 10 May 2012 18:43:51 +0000
Subject: note 107739 modified in function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187777@lists.php.net to get a copy of this message
About CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE, and which / how to use.

- CURLOPT_COOKIEJAR is used when cURL is reading cookie data from disk.

- CURLOPT_COOKIEFILE is used when cURL is writing the cookie data to disk.

So you need to specify both (and set the same file location on both) when working with sessions for example. --was-- About CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE, and which / how to use. - CURLOPT_COOKIEJAR is used when cURL is reading cookie data from disk. - CURLOPT_COOKIEFILE is used when cURL is writing the cookie data to disk. So you need to specify both (and set the same file location on both) when working with sessions for example. I found more information here: http://www.electrictoolbox.com/php-curl-cookies/ http://php.net/manual/en/function.curl-setopt.php

« previous php.notes (#187777) next »