> What would happen with your code if the version is HTTP/0.9? > These are clients written before the HTTP1.0 RFC! I think you > need to parse the exact version number and also consider the > future versions as well:
Exactly because of future versions I was testing against '1.0' and not '1.1'. I don't believe there are any HTTP/0.9 clients to be found in the real world. Are they? Still, HttpSrv is full of '1.0' and '1.1' tests and does not really 'upgrade' nicely to future HTTP protocols so it would be equally good to write the test as if FVersion = 'HTTP/1.1' then FKeepAlive := true; BTW, so you do agree that this is a bug? Primoz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be