Salut,
looking at issue filled by Sahoo:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5372
I cannot reproduce the problem on both Ubuntu and OS X.
My host file contains:
127.0.0.1 localhost
127.0.1.1 ja120114-desktop
> ja120114@ja120114-desktop:/tmp$ wget -S http://localhost:8080/tomcat-test/
> --12:21:23-- http://localhost:8080/tomcat-test/
> => `index.html.1'
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response...
> HTTP/1.1 200 OK
> X-Powered-By: Servlet/2.5
> Server: GlassFish/v3
> ETag: W/"29-1216862374000"
> Last-Modified: Thu, 24 Jul 2008 01:19:34 GMT
> Content-Type: text/html
> Content-Length: 29
> Date: Thu, 24 Jul 2008 16:21:23 GMT
> Connection: Keep-Alive
> Length: 29 [text/html]
> ja120114@ja120114-desktop:/tmp$ wget -S http://localhost:8080/tomcat-test/ServletTest
> --12:22:52-- http://localhost:8080/tomcat-test/ServletTest
> => `ServletTest'
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response...
> HTTP/1.1 200 OK
> X-Powered-By: Servlet/2.5
> Server: GlassFish/v3
> Content-Type: text/plain;charset=ISO-8859-1
> Content-Length: 7
> Date: Thu, 24 Jul 2008 16:22:52 GMT
> Connection: Keep-Alive
> Length: 7 [text/plain]
Are you using HTTP 1.0 by any chance?
Thanks
-- Jeanfrancois