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, et
A plain try/except should do the trick:
try IdHttp1.Get(...); Result:=IdHttp1.ResponseCode=200; except on EIdException do Result:=false; end;