note 85747 added to function.curl-setopt

From: Date: Tue, 16 Sep 2008 08:34:10 +0000
Subject: note 85747 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-144438@lists.php.net to get a copy of this message
Some of you may noticed that curl is not transferring cookies between sequent calls to a host. This is because you must activate curl`s "cookie parser". That is achieved using an external file like this: <?php curl_setopt(CURLOPT_FILE, '/tmp/cookies_file'); ?> If you don`t need to read any cookies but you still want the "cookie parser" use the same code but with dummy file with no data like '/dev/null', that way curl is storing cookies internaly per curl_handle: <?php curl_setopt(CURLOPT_FILE, '/dev/null'); ?> ---- Server IP: 217.75.128.29 Probable Submitter: 193.142.0.1 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/85747 Del: integrated -- https://master.php.net/note/delete/85747/integrated Del: useless -- https://master.php.net/note/delete/85747/useless Del: bad code -- https://master.php.net/note/delete/85747/bad+code Del: spam -- https://master.php.net/note/delete/85747/spam Del: non-english -- https://master.php.net/note/delete/85747/non-english Del: in docs -- https://master.php.net/note/delete/85747/in+docs Del: other reasons-- https://master.php.net/note/delete/85747 Reject -- https://master.php.net/note/reject/85747 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144438) next »