note 115153 deleted from function.curl-setopt by crell

From: Date: Thu, 31 Mar 2022 20:55:10 +0000
Subject: note 115153 deleted from function.curl-setopt by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217972@lists.php.net to get a copy of this message
Note Submitter: Simeon Anastasov ---- One note of importance when you open several cURL handles simultaneously: If you want to share cookies via cookie-jar file among all your handles - be sure to curl_close() one before using the cookie-jar file from the other. It appears that during cURL handler execution the cookies are kept in some sort of handler specific internal session storage and only upon explicit curl_close() call or interpreter exit garbage collection these cookies are actually flushed to the file on the hard disk ( I guess for performance reasons ). I hope this note will save you couple of hours debugging :)

« previous php.notes (#217972) next »