Give a hint. I do a parser. For parsing, I need to log in to the site. But the site scorches that sending the login and password is not from the browser. Here's what curl looks like:
$this->ch = curl_init(); curl_setopt($this->ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"); curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($this->ch, CURLOPT_COOKIEFILE, 'user_cookie_file.txt'); curl_setopt($this->ch, CURLOPT_COOKIEJAR, 'user_cookie_file.txt'); curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($this->ch, CURLOPT_URL, PAGEAUTHORIZATION); curl_setopt($this->ch, CURLOPT_POST, 1); curl_setopt($this->ch, CURLOPT_POSTFIELDS, $this->postData); curl_setopt($this->ch, CURLOPT_REFERER, PAGEAUTHORIZATION); $error = curl_exec($this->ch); Parameters in the post request send everything you need. Authorization sometimes passes, example 1 time out of 20 attempts. In other cases, the report receives a page of the site with a warning of suspicious activity. Please give advice.