Доброго времени суток. Подскажите, как авторизироваться на сайте https://efekthurt.pl/customer/account/login/, посредством CURL. Пересмотрел кучу видео. Прочитал кучу статей по этому поводу, но не как не доделаю. Уже раз десять все удалял и заного. Где-то что-то не допонимаю. Может сайт сделан так, что просто так не спарсить. Внесите ясность пожалуйста. PHP: <? require 'phpQuery.php'; function get_content($url, $data = []){ $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEJAR, __DIR__.'/cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, __DIR__.'/cookie.txt'); }; $url = 'https://efekthurt.pl/customer/account/login/'; $file = file_get_contents($url); $doc = phpQuery::newDocument($file); $inputs = $doc->find('input[name="form_key"]'); $val = $inputs->attr('value'); $url_auth = 'https://efekthurt.pl/customer/account/loginPost/'; $url = 'https://efekthurt.pl'; $auth_data = [ 'form_key' => $val, 'login[username]' => '****@gmail.com', 'login[password]' => '123456', ]; $data = get_content($url_auth, $auth_data); $data = get_content($url); var_dump($data); ?>