W3C home > Mailing lists > Public > www-validator@w3.org > October 1999

Re: Updated output format

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 26 Oct 1999 20:21:29 +0200
Message-ID: <005001bf1fdf$31c42750$ad85fcc3@de>
To: "Gerald Oskoboiny" <gerald@w3.org>
Cc: <www-validator@w3.org>
| > sub redirect_to_home_page {
| >     print "Status: 301 Moved Permanently\n";
| >     print "Location: http://validator.w3.org/\n\n;
| >
| >     &clean_up_and_exit;
| > }
|
| I tried that, but the Apache we're currently using (1.3.6) didn't
| generate HTML output:
|
| maybe this feature was added to a more recent version of Apache?

Strange. When I only print the Location statement without any Content-Type or
Status information, a HTML Output is generated (with status 302). Ok, so

sub redirect_to_home_page {

print <<"EOF";
Status: 301 Moved Permanently
Content-Type: text/html;charset=iso-8859-1
Location: http://validator.w3.org/

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The validation service has moved <A
HREF="http://validator.w3.org/">here</A>.<P>
</BODY></HTML>
EOF

&clean_up_and_exit;
}

or alike would be a better solution.

regards,

  Björn Höhrmann
--
http://www.bjoernsworld.de
Received on Tuesday, 26 October 1999 14:24:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:52 GMT