我正在使用的 URL 是:http ://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3
我已经尝试过:
$ch = curl_init("http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3");
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
print_r($data = curl_getinfo($ch));
echo $data["url"];
我也试过:
print_r(get_headers("http://www.edealinfo.co.uk/deals/redirect.php?id=k9OTxOWl25NiuN3KuZWIlFeagbK3aZo%3"));
没有任何运气。有人有解决方案吗?