如果找不到返回 404 页面,我如何使 Idhttp 在循环中运行 问题是“GOTO CheckAgain”导致进入或退出 TRY 语句
label
CheckAgain;
begin
CheckAgain:
try
idhttp.Get(sURL+WebFile[I], S);
except
on E: EIdHTTPProtocolException do
if AnsiPos('404',E.Message) <> 0 then
begin
I := I+1;
goto CheckAgain;
end;
end;
end;