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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
