Hello, I noticed that the HttpCli component return the 404 status code not only when the server return this code but even under different situations. For example when it is unable to resolve the hostname or when wsocket raise an error (please correct me if I'm wrong).
This is a problem because the application is unable to distinguish if this error is returned by the server or not. In a program I implemented a very simply retry mechanism. The retry will be executed only if the status code returned is not a permanent error (I identified the 408, 503 and 504). The 404 is a permanent one but it is returned even when the socket return 10060 (Connection timed out). Probably a solution could be to expose the FRequestDoneError field. The status code should be meaningful only if FRequestDoneError=0. What do you think? Bye, Maurizio. -- 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