You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Punky Tse <pu...@yahoo.com> on 2001/01/04 13:35:21 UTC

http HEAD request

Hi,
    I found 2 issues about the build-in HTTP Connector in Tomcat 3.2.

    The first one is that the HEAD request returns a full document.  I am
not a HTTP expert, so I don't know if it is right or wrong.  But when I
"telnet localhost 80" on my apache for HEAD request, only headers are
return.

    The second one is that the HEAD request does not return the Server
attribute. This is not a big deal, but it makes Netcraft unable to detect
there are Tomcat standalone servers around. Use
http://uptime.netcraft.com/up/graph/ and see...

    Any comment?  OK, see below.

Punky

==================================================================
$ telnet localhost 8080
Trying 127.0.0.1...
Connected to ws-punky-tse.
Escape character is '^]'.
HEAD /index.html HTTP/1.0

HTTP/1.0 200 OK
Content-Type: text/html
Content-Length: 2572
Last-Modified: Thu, 04 Jan 2001 12:32:28 GMT
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.2.2;
Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)

<index.html here.....>

==================================================================
$ telnet localhost 80
Trying 127.0.0.1...
Connected to ws-punky-tse.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 04 Jan 2001 12:34:57 GMT
Server: Apache/1.3.12 (Win32) tomcat/1.0
Content-Location: index.html.en
Vary: negotiate,accept-language
TCN: choice
Last-Modified: Sat, 20 Nov 1999 07:29:40 GMT
ETag: "0-574-38364de4;3792a3d4"
Accept-Ranges: bytes
Content-Length: 1396
Connection: close
Content-Type: text/html
Content-Language: en
Expires: Thu, 04 Jan 2001 12:34:57 GMT

Connection closed by foreign host.