View Single Post
Old 07-24-2002, 09:10 AM  
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Optimized redirection (cgi/perl)

Here's a simple redirection perl script:

Code:
#!/usr/bin/perl -wT
print "Location:http://www.nba.com/\n\n ";
sleep(15);
exit;
If you run it, you will notice that it waits 15 seconds before going to nba.com, even though nothing else is required to be 'printed' to the browser. The sleep is stuck in there to represent tracker calculations that have to be perform.

Is there anyway to cause the redirect to take place immediately, and then perform the calculations afterwards?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote