Hola,
Y saca el "Create" fuera del "Try":
Código Delphi
[-]
procedure TForm1.Button1Click(Sender: TObject);
procedure TForm1.Button1Click(Sender: TObject);
const
paginas:array[1..4] of string = ('index.php','noexisto.php','basura/noexisto','index.php');
var
IdHTTP: TIdHTTP;
i:integer;
begin
IdHTTP := TIdHTTP.Create(nil);
try
for i:= Low(paginas) to High(paginas) do
try
IdHTTP.Get(Edit1.Text+'/'+paginas[i]);
if IdHTTP.ResponseCode=200 then
Memo1.Lines.Add(Edit1.Text+'/'+paginas[i]);
except
on E : EIdHttpProtocolException do ;
on E : Exception do ;
end;
finally
idHTTP.Free;
end;
end;
¡Esto sí que es un mete-saca!