Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi INDY HTTP Timeout (https://www.delphipraxis.net/101978-indy-http-timeout.html)

Telefonkabel 21. Okt 2007 17:28


INDY HTTP Timeout
 
Hy!
Ich habe ein Problem und zwar möchte ich mittels Indy eine GET-Anfrage an eine Seite senden.
Jetzt kann es ja passieren, dass die Seite nicht existiert, oder ich keine INternetverbindung an habe, etc.
Wie kann ich nun die nette Exception unterdrücken, die dabei erscheint.
Mit Try...Except funktioniert es nicht.

Delphi-Quellcode:
begin
   try
      idhttp1.Get('http://www.google.de');
   except
      on e: EIdSocketError do
      richedit1.Text := inttostr(e.LastError);
   end;
end;

Apollonius 21. Okt 2007 17:40

Re: INDY HTTP Timeout
 
Ich vermute mal, dass die Exception nur im Debugger angezeigt wird. Du kannst das auch ausschalten, bei mir ist das unter Tools->Optionen.

Telefonkabel 21. Okt 2007 21:26

Re: INDY HTTP Timeout
 
Genau das wars, danke. ;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz