问题在代码中得到了更好的说明:
<?php
$ch = curl_init();
$url = 'http://google.com';
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec($ch);
$result_header = curl_getinfo($ch);
curl_close($ch);
header('Location '.$result_header['redirect_uri']);//Here regional version of google, in my case its http://google.ru.
?>
所以标题不起作用。如何解决这个问题呢?谢谢。最好的问候阿尔比娜。