Guys,

I got 302 status in requesting the following URL:

1. http://punknix.homeip.net/examples/servlets/

but this one is ok:

2. http://punknix.homeip.net:8080/examples/servlets/

Can you see the difference?  Why the first one doesn't work (I mean, the 
page does not forward?)  Then I go into a very native approach by using 
telnet.  See the bottom

Please take a note on the first line of the HTTP response and Location 
header.  Why there is no status code returned and the hostname 
(localhost) is missing in Location header?  Anybody knows who breaks it? 
  httpd-2.0, tomcat 4 or mod_webapp?

I use the cvs snapshot of httpd-2.0, tomcat 4 and mod_webapp.

- Punky

===================================================
<CCHK030:tse_p [1]>telnet punknix.homeip.net 80
Trying 61.18.154.226...
Connected to punknix.homeip.net.
Escape character is '^]'.
HEAD /examples/servlets/ HTTP/1.0

HTTP/1.1 Moved Temporarily
Date: Wed, 15 May 2002 02:44:42 GMT
Server: Apache/2.0.37-dev (Unix) mod_webapp/1.2.0-dev
Content-Type: text/html; charset=ISO-8859-1
Location: http:///examples/servlets/index.html
Connection: close

Connection closed by foreign host.
===================================================

===================================================
<CCHK030:tse_p [2]>telnet punknix.homeip.net 8080
Trying 61.18.154.226...
Connected to punknix.homeip.net.
Escape character is '^]'.
HEAD /examples/servlets/ HTTP/1.0

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Wed, 15 May 2002 02:44:49 GMT
Location: http://localhost:8080/examples/servlets/index.html
Server: Apache Tomcat/4.0.4-dev (HTTP/1.1 Connector)
Connection: close

Connection closed by foreign host.
===================================================


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to