The HTTP 1.0 and 1.1 specs require clients to recognize HTTP 0.9 responses, and
servers to recognize HTTP 0.9 requests. Neither TIdHTTP nor TIdHTTPServer do
so.
An HTTP server that sends HTTP 0.9 responses has been encountered in the wild:
http://perforce.eigenbase.org:8080/favicon.ico
If the TIdHTTP.Request.UserAgent property is left at its default value, calling
TIdHTTP.Get() with this URL fails because the response is HTTP 0.9. However,
setting the UserAgent to mimic Internet Explorer instead causes the server to
send an HTTP 1.0 response and TIdHTTP.Get() works fine.
So, for completeness, TIdHTTP and TIdHTTPServer should be updated to handle
HTTP 0.9, even though it is not encountered very often.
Original issue reported on code.google.com by gambit47 on 28 Jan 2013 at 6:56
Original issue reported on code.google.com by
gambit47
on 28 Jan 2013 at 6:56