なひです.

> From: GOTO Kentaro [mailto:gotoken / math.sci.hokudai.ac.jp]
> Sent: Monday, June 07, 1999 5:35 PM

> >え、HTTP/1.0リクエストでも蹴られるのでしょうか。
> >HTTP/1.1リクエストにHostがなかった場合の話かと思っていました。
> 
> さすがにそれはないようです。

すいません,なひの勘違いでした...以前の経験で,
HTTP/1.1でHostがないと400が返った(RFC2068でMUSTなので正しい動作)
のを,HTTP/1.0の時にそうなったのだと勘違いしてました.

罪滅ぼしに,手近なサーバでの調査結果を載せます.
HTTP/1.1で,Hostヘッダなしでアクセスしました.

Netscape-Enterprise/2.01(古い...)でOKが返るのは,
HTTP/1.1未対応,ということでしょう.
IISやOracle_Web_listener,Apache(これもちょっと古い)は,
400を1.0で返したり,1.1で返したりしてますね.

# Rubyと関係なくて申し訳ないです.

	/	/	/

Script started on Mon Jun 07 18:04:28 1999
0% telnet localhost 10001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/4.0
Date: Mon, 07 Jun 1999 09:05:56 GMT
Connection: close
Content-Length: 371
Content-Type: text/html

Connection closed by foreign host.
1% telnet localhost 10002
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.0 400 Bad Request
Date: Mon, 07 Jun 1999 09:04:54 GMT
Allow: GET, HEAD
Server: Oracle_Web_listener3.0/2.13
Content-Type: text/html
Content-Length: 129

Connection closed by foreign host.
1% telnet localhost 10003
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.0 200 OK
Server: Netscape-Enterprise/2.01
Date: Mon, 07 Jun 1999 09:05:02 GMT
Accept-ranges: bytes
Last-modified: Tue, 15 Dec 1998 04:38:07 GMT
Content-length: 2599
Content-type: text/html

Connection closed by foreign host.
1% telnet localhost 10004
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Mon, 07 Jun 1999 09:06:46 GMT
Server: Apache/1.3.3 (Unix)
Connection: close
Content-Type: text/html

Connection closed by foreign host.
1% 
script done on Mon Jun 07 18:06:48 1999