tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <r...@apache.org>
Subject Re: cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java
Date Thu, 11 Apr 2002 10:11:55 GMT
> > De: Remy Maucherat [mailto:remm@apache.org]
> > Enviado el: jueves 11 de abril de 2002 10:57
>
> > >   -- Degrade to the socket port on HTTP/1.0 requests with a
> > Host header
> > but no port number.
> > >
>
> if you are under a nat, dafaulting to the socket port maybe no correct,
> you could have tomcat in 8080, and the request would be redirected from
> a 80 port, so if a host header with no port is present the correct
> behavior should be to degrade to 80, without taking the socket port into
> consideration, as the client can actually see it as 80.. so we must obey
> the host header ever if present..

That's what is done.

In HTTP/1.0, there's no host header defined in the spec, so a client using
and expecting it to work is non-compliant.
In HTTP/1.1, we always follow the host header, and ignore what the socket
says, according to the spec.

Remy


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message