You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2002/10/21 02:41:59 UTC

multiple host headers?

Just playing around ;-)

Consider the following request: (test is a directory)

GET /test HTTP/1.1
Host: gsmpf
Host: test
Host: lala

HTTP/1.1 301 Moved Permanently
Date: Mon, 21 Oct 2002 00:27:17 GMT
Server: Apache/2.0.43 (Win32)
Location: http://gsmpf, test, lala/test/
Content-Length: 314
Content-Type: text/html; charset=iso-8859-1

[...]

hmm. RFC 2616/4.2 says:

| Multiple message-header fields with the same field-name MAY be
| present in a message if and only if the entire field-value for that
| header field is defined as a comma-separated list [i.e., #(values)].

'Host:' isn't defined as #(values) in any way (see 14.23). So the
response should be a simple 400 Bad Request, shouldn't it?

nd
-- 
"Die Untergeschosse der Sempergalerie bleiben währenddessen aus
 statistischen Gründen geflutet." -- Spiegel Online