Julius,

a HTTP/1.1 request must include a Host header.

$ telnet www.niedersachsen.de 80
Trying 195.37.201.132...
Connected to cms.niedersachsen.de.
Escape character is '^]'.
HEAD /home.jsp HTTP/1.1
Host: cms.niedersachsen.de

HTTP/1.1 404 Not Found
Date: Thu, 03 Mar 2005 17:14:42 GMT
Server: Apache
Content-Type: text/html; charset=UTF-8
pragma: no-cache

Connection closed by foreign host.

It might actually be a HTTP version issue, as:

$ telnet www.niedersachsen.de 80
Trying 195.37.201.132...
Connected to cms.niedersachsen.de.
Escape character is '^]'.
HEAD /home.jsp HTTP/1.0

does not return.

Julius Davies wrote:
Hi, Johannes,

It does read that line.  If you turned on the "wire tracing" you would
see that.  Behind the scenes HttpClient is following the redirect, and
the 2nd request is not getting any response.

To turn on "wire tracing":
http://jakarta.apache.org/commons/httpclient/logging.html

Your server does not reply to "HEAD" requests to "/home.jsp":

$ telnet www.niedersachsen.de 80
Trying 195.37.201.132...
Connected to cms.niedersachsen.de.
Escape character is '^]'.
HEAD /home.jsp HTTP/1.1

[no response....]


yours,

Julius

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



Reply via email to