ARTICLE AD BOX
<?php
$agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';
$ch = curl_init("https://soccer365.ru/games/15688984/");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language: en-US,en;q=0.5',
'Connection: keep-alive',
'Upgrade-Insecure-Requests: 1'
]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$res_game = curl_exec($ch);
echo $res_game;
curl_close($ch);
Please help me figure out how to prevent curl from redirecting to another link. Redirect to https://soccer365.ru/live/match-luton-tottenhem-smotret-onlayn/
