jumaris / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

Update TIdHTTP and TIdHTTPServer to support HTTP 0.9 #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by gambit47 on 28 Jan 2013 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by gambit47 on 4 Feb 2013 at 7:39