Yoav,

RFC 2145 seems do be more relevant since RFC 2616 explicitly refers to it
for a fuller explanation of the HTTP Version. Moreover, RFC 2145 says that
"In any case where either of those two documents is ambiguous regarding the
use and interpretation of HTTP version numbers, this document should be
considered the definitive as to the intentions of the designers of HTTP."
However, this does no harm since RFC 2145 clarifies rather than contradicts
RFC 2616.

That said, Peter Maine's response seems to have been correct in the first
place. RFC 2145 says "that an HTTP/1.1 message sent to an HTTP/1.0 recipient
(or a recipient whose version is unknown) MUST be constructed so that it
remains a valid HTTP/1.0 message when all headers not defined in the
HTTP/1.0 specification [1] are removed."  If you send an HTTP/1.0 request
the response you get is basically HTTP/1.0 since an HTTP compliant client is
required to ignore any unknown headers. Furthermore, the server MUST NOT
depend on the client understanding a header not defined in the specification
for HTTP/1.0.

The HTTP-version field in the server response specifies "the highest version
for which the server is at least conditionally compliant" and gives no hint
of the version which has been actually used. This might state a version of
HTTP/1.1 even though the response version is actually HTTP/1.0 .

This should be the behaviour implemented by Tomcat since "No vendor or other
provider of an HTTP implementation should claim any compliance with any IETF
HTTP specification unless the implementation conditionally complies with the
rules in this document." (RFC 2145)

For the original poster this might probably mean that there is no need to
worry at all. If your client is HTTP/1.0 compliant just send HTTP/1.0
requests and you should be able to understand the response.

Stefan



> -----Original Message-----
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 27, 2003 2:20 PM
> To: Tomcat Users List
> Subject: RE: How to use HTTP1.0 by default
> 
> 
> 
> Howdy,
> 
> >If an HTTP/1.1 server receives an HTTP/1.0 request, it should respond
> with >HTTP/1.0. The response will say "HTTP/1.1" because that 
> indicates
> the >version that the server is capable of providing, not the version
> that it is >using for the response.
> >RFC 2145 says "An HTTP server MAY send a lower response 
> version, if it
> is >known or suspected that the client incorrectly implements the HTTP
> >specification, but this should not be the default, and this 
> SHOULD NOT
> be >done if the request version is HTTP/1.1 or greater." You can
> probably draw >your own conclusions as to what Tomcat probably does.
> >Therefore, if you want Tomcat to respond using HTTP/1.0, send it an
> >HTTP/1.0 request. 
> 
> It's nice to see a researched response.  However, I disagree with it.
> RFC 2145 is less relevant here than RFC 2616.  RFC 2616 requires that
> HTTP servers always begin their responses with the highest 
> HTTP version
> that they claim to support. Therefore, this Connector will 
> always return
> HTTP/1.1 at the beginning of its responses.
> 
> Either way, the original poster is down a path that will 
> require him/her
> to:
> - Use old/deprecated connectors
> - Customize a connector
> - Use an older HTTP/1.0 server.
> 
> Yoav Shapira
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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

Reply via email to