Wei Gao wrote:

In my perl program executing in Apache web server, I have the following code:
use CGI ;
$query = new CGI ;
$url = http://www.mycite.com ; #The url to refresh.
print $query->header(-status=>'200 Ok', -type=>'text/html');
print "<html><head><meta http-equiv=\"Refresh\" content=\"0;URL=$url\" /></head></html>";

Uh, that's not a redirect; that's an ugly proprietary hack. You should be using standard HTTP redirects. See http://search.cpan.org/author/JHI/perl-5.8.0/lib/CGI.pm#GENERATING_A_REDIRECTION_HEADER for more.

- Perrin



Reply via email to