- From: Gerald Oskoboiny <gerald@w3.org>
- Date: Tue, 26 Oct 1999 09:33:16 -0400
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- Cc: www-validator@w3.org
On Mon, Oct 25, 1999 at 05:02:41PM +0200, Bjoern Hoehrmann wrote: > >[validators output has changed] > | Feedback is welcome... > > You're using different font sizes for the zirkumflex ('^') > character and and HTML Code. So if i change the font size in my > browser, the '^' will point to a different character and is > useless. Oops... Fixed. > Btw: check 1.44: > > |> sub redirect_to_home_page { > |> > |> print "Status: 302 Moved Permanently\n"; > |> print "Content-Type: text/html\n"; > |> print "Location: http://validator.w3.org/\n\n"; > |> print "<title>Moved!</title>\n"; > |> print "<p>\n"; > |> print " Please see <a href=\"http://validator.w3.org/\">the validation > |> service's home page.</a>\n"; > |> print "</p>\n"; > |> > |> &clean_up_and_exit; > |> > |> } > > The Status should be 301 not 302 for moved permanently, see RFC2616. Fixed. > If you remove the "print Content-Type:[...]" and the HTML Code, > Apache will create a better HTML Output. > > My suggestion would be: > > 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: gerald@rux:gerald/validator/httpd/cgi-bin$ telnet validator 8000 Trying 18.29.0.28... Connected to abyss.w3.org. Escape character is '^]'. GET /check?uri= HTTP/1.0 Host: validator.w3.org HTTP/1.1 301 Moved Permanently Date: Tue, 26 Oct 1999 13:20:35 GMT Server: Apache/1.3.6 (Unix) Location: http://validator.w3.org/ Connection: close Content-Type: text/plain maybe this feature was added to a more recent version of Apache? -- Gerald Oskoboiny <gerald@w3.org> +1 617 253 2920 System Administrator http://www.w3.org/People/Gerald/ World Wide Web Consortium (W3C) http://www.w3.org/
Received on Tuesday, 26 October 1999 09:33:20 UTC