Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Fr 19.06.09 10:34 
Hallo Leute,
ich hab das Problem das ich mir den Quelltext von meiner Seite hole, mein Problem dabei ist das das Programm immer Probleme macht wenn der Server nicht erreichbar sein sollte.
Meine Frage ist jetzt wie kann ich Prüfen ob der Server erreichbar ist bzw die Datei vorhanden?

ausblenden Delphi-Quelltext
1:
text := IdHTTP1.Get(Edit1.Text);					
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 19.06.09 10:41 
Wenn die Seite nicht erreichbar ist, wirft IDHttp eine Exception. Die musst du abfangen, auswerten und kannst dem User ggf. weitere Hinweise geben, warum da was nicht klappt. Wie lange man auf Antwort warten kann, lässt sich mit den TimeOuts der Komponente regeln.

_________________
We are, we were and will not be.
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Fr 19.06.09 10:51 
In was muß ich den die TimeOuts angeben jezt steht dort 0.
Soll ich für 10 Sekunden dann 10000 eingeben?

Edit: Hat sich erledigt Eingabe in Millisekunden.