You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Allison <Da...@orbian.com> on 2003/11/07 14:27:57 UTC
Tomcat 4.1.24 - HTTP Status Message..
Hi All,
Recently we upgraded our Tomcat to version 4.1.24..
We have Apache sitting in front of it providing SSL etc etc..
Since upgrading we've noticed that the status line in HTTP responses has
changed from
HTTP/1.0 200 OK
to
HTTP/1.0 200
I'm not sure that whether the text message on the status line is compulsory
or not but one of our clients systems has been failing since as it calls
HttpURLConnection.getResponseCode() which throws an exception (seemingly
because of the missing text)...
Does anyone know if this text is compulsory in the HTTP response (I haven't
found anything that says clearly either way) and also why Tomcat was changed
this way.. Was there a particular reason, is there any fix to this problem
or is Tomcat still acting correctly (I suspect it is)..
Thanks for your help
Dave
*******************************************************************************
This message contains information that may be privileged or confidential and is the property of Orbian Management Limited. It is intended solely for the named addressee(s) and may not be used or disclosed except for the purpose for which it has been sent.
Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof.
If you have received this message in error, please notify the sender immediately and delete the message and any attached documents.
Any opinions, conclusions and other information expressed in this message are those of the individual sender and are not given or endorsed by Orbian unless otherwise clearly indicated.
Orbian has scanned this e-mail for viruses but accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the Orbian domain.
*******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 4.1.24 - HTTP Status Message..
Posted by Jon Wingfield <jo...@mkodo.com>.
FYI: http://issues.apache.org/bugzilla/show_bug.cgi?id=19480
However, contrary to that bug report the Reason Phrase is not mandatory
according to the spec (well, to be picky, it is mandatory but the phrase
can be zero bytes long):
HTTP1.1 spec:
http://www.w3.org/Protocols/rfc2616/rfc2616.txt
<snip>
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
...
Reason-Phrase = *<TEXT, excluding CR, LF>
</snip>
The * in the BNF grammar used means any positive number (and including
zero).
Additionally, the reason 'OK' for code 200 should not be assumed as the
server can choose to change this phrase to the local language.
Another upgrade beckons...
HTH,
Jon
David Allison wrote:
> Hi All,
>
> Recently we upgraded our Tomcat to version 4.1.24..
> We have Apache sitting in front of it providing SSL etc etc..
>
> Since upgrading we've noticed that the status line in HTTP responses has
> changed from
>
> HTTP/1.0 200 OK
>
> to
>
> HTTP/1.0 200
>
> I'm not sure that whether the text message on the status line is compulsory
> or not but one of our clients systems has been failing since as it calls
> HttpURLConnection.getResponseCode() which throws an exception (seemingly
> because of the missing text)...
>
> Does anyone know if this text is compulsory in the HTTP response (I haven't
> found anything that says clearly either way) and also why Tomcat was changed
> this way.. Was there a particular reason, is there any fix to this problem
> or is Tomcat still acting correctly (I suspect it is)..
>
> Thanks for your help
>
> Dave
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org