httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Wilga <>
Subject [users@httpd] Re: OT: Refresh and different browsers
Date Fri, 23 Jul 2004 13:07:46 GMT
>If they are, a simple index.cgi generates a refresh with url = to the
>$REMOTE_USER learned from the authentication. The output looks
>like this for the username "mlm":
><meta http-equiv="refresh" content="0; url=/~mlm/">

This would probably work with the browsers you listed if you were to 
wrap this in <html>...</html>. However, this tag is not recognized by 
some older browsers. The better way is to sent an HTTP redirect 
header, instead of HTML code:

#!/usr/bin/perl -w
print "Status: 301\n";
print "Location:\n";
print "\n";

Note that you should include a fully-qualified URL (not a relative 
one), if you use this method.
Dan Wilga                               
Web Technology Specialist           
Mount Holyoke College                                Tel: 413-538-3027
South Hadley, MA  01075            "Who left the cake out in the rain?"

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message