Einzelnen Beitrag anzeigen

seddto1977

Registriert seit: 15. Apr 2004
69 Beiträge
 
#4

Re: Problem mit idhttp bei Googlesuche

  Alt 17. Nov 2008, 12:39
Hallo Klaus01,

Danke für die Antwort! Das war auch das erste was ich versucht habe:

Delphi-Quellcode:
try
  Form1.idhttp1 := tidhttp.create (nil);
  Form1.IdHTTP1.HandleRedirects := true;
  Form1.idHTTP1.Request.UserAgent := 'Mozilla';
  googlestring := Form1.idHTTP1.Get(googlesuche);
  freeandnil(Form1.idhttp1);
except
  Application.ProcessMessages;
end;
Die Fehlermeldung bleibt aber Nach der Exception springt das Programm nicht mal in den "except-Block" sondern bleibt in der Zeile freeandnil hängen. Ich weiss langsam echt nicht mehr weiter
  Mit Zitat antworten Zitat