CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
CURLOPT_COOKIEJAR file where cookies are written after the closing of a connection, for example, after curl_close() CURLOPT_COOKIEFILE file to read cookies from where. So use both and not go wrong. https://helperbyte.com/questions/233861/what-is-the-difference-between-curlopt_cookiefile-and-curlopt_cookiejar-in-curl
Обсуждают сегодня