Answer the question
In order to leave comments, you need to log in
Why doesn't CURL work on automatic token generation?
Good evening everyone! Help, please, to understand a problem. cURL refuses to work. Worked earlier, now for the reason unknown to me returns the NULL answer.
$curl = curl_init();
curl_setopt($curl, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl, CURLOPT_FAILONERROR, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT,30);
curl_setopt($curl, CURLOPT_TIMEOUT,30);
$page = curl_exec($curl);
echo var_dump($page);
echo curl_error($curl);
curl_close($curl);
Answer the question
In order to leave comments, you need to log in
start the inspector on a new one, obviously) + try the proxy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question