You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike McMullen <ml...@loanprocessing.net> on 2004/07/23 20:53:53 UTC

Re: [users@httpd] Re: OT: Refresh and different browsers -SOLVED


> 
> ----- Original Message ----- 
> From: "Dan Wilga" <dw...@MtHolyoke.edu>
> To: <us...@httpd.apache.org>
> Sent: Friday, July 23, 2004 6:07 AM
> Subject: [users@httpd] Re: OT: Refresh and different browsers
> 
> 
> > >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":
> > >
> > ><head>
> > ><meta http-equiv="refresh" content="0; url=/~mlm/">
> > ></head>
> > 
> > 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: http://www.myhost.com/~mlm/\n";
> > print "\n";
> > 
> > Note that you should include a fully-qualified URL (not a relative 
> > one), if you use this method.
> > -- 
> > Dan Wilga                                         dwilga@mtholyoke.edu
> 
> Dan,
> 
> Thanks! I'll give this a try.
> 
> Mike
Hi Dan,

This worked perfectly.

Thanks!

Mike



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org