Cookies When Parsing in PHP
To simulate a user's browser, cookies should be accepted and sent.
Let me remind you how this is done:
<?php
$cookieFilePath = $_SERVER['DOCUMENT_ROOT'] . 'cookie.txt';
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookieFilePath);
curl_setopt($curl, CURLOPT_COOKIEJAR, $cookieFilePath);
?>