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

Possible bug: fetch external DTD; Validator does not send Host: HTTP-header

From: Peter Brodersen <peter@plys.net>
Date: Tue, 21 Dec 1999 15:27:18 -0500 (EST)
Message-ID: <385FE2A1.ECC8AFB@plys.net>
To: www-validator@w3.org

I was trying to validate a document with a foreign DOCTYPE - the first
lines of the file was:

<?xml version="1.0"?>

The validator appearently tried to fetch the doctype-specification, but:

Error: could not get "/DTD/wml_1.1.xml" from "www.wapforum.org" (reason
given was "Host Header Required")

... and causing trouble for the rest of the validation.

It looks like the routine to get an external document is using an old
implementation of HTTP, not sending the "Host:"-HTTP-header:

Host: www.wapforum.org

If the webserver, containing the doctype-specification, are running
virtual hosts (multiple hosts at the same IP-address), it can't know
what host, the requested file is placed on, causing the request to fail.

Due the wide usage of virtual hosts, I believe that the validator should
also support sending the Host:-header

Just my 0.02$ worth. Merry christmas! :-)

- Peter Brodersen
  Professional nerd
Received on Tuesday, 21 December 1999 15:29:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:15 UTC