
User Contributed Notes 1 note
Robert Chapin ¶
4 years ago
Cookie handling is DISABLED by default. The following must be used prior to CURLOPT_SHARE.
curl_setopt($ch1, CURLOPT_COOKIEFILE, "");
curl_setopt($ch2, CURLOPT_COOKIEFILE, "");
Also, do not attempt to use CURLOPT_SHARE with curl_setopt_array because this can cause the options to be set in the wrong order, which will fail.
备份地址:http://www.lvesu.com/blog/php/function.curl-share-init.php