bu kodda işini görür ;
$baslik = get_headers("http://www.domain.com/filedownload.php?id=12323", 1);
echo "$baslik['Location']";
Array ( [0] => HTTP/1.1 200 OK [Date] => Fri, 18 Sep 2009 20:21:46 GMT [Server] => Microsoft-IIS/6.0 [X-Powered-By] => Array ( [0] => ASP.NET [1] => PleskWin ) [Content-Length] => 14874 [Content-Type] => text/html [Set-Cookie] => ASPSESSIONIDAQDDDDAQ=HLIJLCHBDMLINHDHJLEPCPFI; path=/ [Cache-control] => private )
Location yok

200 OK dediği için mi? yönlendirme olması için 302 moved. yok.