Simulating a form GET is no big deal. You can just do a fopen of a URL...
$buffer = "";
$fd = fopen("http://px.sklar.com/code.html?code_id=313", "R");
while (!feof ($fd)) {
$buffer. = fgets($fd, 4096);
}
fclose ($fd);
Check $buffer for a 302 redirect (usually a header that looks like this...
HTTP/1.1 302 Moved\r\n
Location: http://www.newloc.com/blah\r\n
\r\n
Parse out the location if you see a 302 redirect and you're good to go...
Dave
===========================================
http://badblue.com
Small footprint P2P web server for Windows,
File-sharing, PHP, wireless apps & more