indy10

How to check URL with IdHTTP?

大城市里の小女人 提交于 2019-11-26 13:04:05
问题 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