How to check URL with IdHTTP?
问题 How can I check for the target URL for specific response code like 200 OK without Indy throwing all sorts of exceptions out. ConnectionTimeout,ConnectionClosedGracefully, etc... For example if URL is not proper or its host cannot be found or cannot be reached. Indy will still rise exceptions even though i tried to ignore them. So my question is how to properly ignore these exceptions. 回答1: 1. How to ignore all exceptions thrown by the TIdHTTP ? To handle all exceptions and, as you say, ignore