Autor Beitrag
noctua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Mi 19.01.05 19:51 
also ich hab gleich ma 3 fragen zu idHTTP von denen ich auch im forum keine so wirklich gute antwort gefunden habe.

1. wenn ich nun eine Datei downloaden will aber ich nach einer gewissen zeit keine lust mehr habe und den download abbrechen möchte dann kann ich das nicht weil (im forum irgendwo ma gelese) mein programm solange blockiert wird bis der download fertig ist. aber irgendwie muss man den doch abbrechen könne, oder nich?

2. und wenn die Datei nicht existiert, möchte ich gerne das er dann garnicht erst anfängt die Datei zu laden aber wie prüfe ich ob sie existiert?

3. kann man eigentlich auch 2 sachen gleichzeitig downloaden? b.z.w eine Datei von 2 URL. wobei das ja nicht gehen kann wenn man einen download nicht abbrechen kann und warten MUSS bis der eine fertig geladen hat.


vielleicht kann mir ja jemand helfen. danke





sry das ich für alle 3 fragen nur einen beitrag schreibe und nicht 3.

_________________
Am ende sterben eh alle ................
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 20.01.05 13:13 
also verhindern, dass das programm während dem DL "hängt" kannst du, indem du due INDY ANTFREEZE kompo noch mit aufs formular setzt.
wenn du datei im internet nicht existiert, dann wird eine exception ausgelöst.
du kannst mehrere Donaloads gleichzeitig machen. dazu solltest du dir mal Threads anschauen

_________________
In the beginning was the word.
And the word was content-type: text/plain.
noctua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: So 23.01.05 16:31 
das hat wunderbar geklapt, danke.

aber wie kann ich einen download nun abbrechen? wenn ich z.b idhttp1.Disconnect benutze stürtzt mein programm ab und was anderes finde ich in der idhttp nicht.

_________________
Am ende sterben eh alle ................
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 24.01.05 13:45 
damit müsste es aber gehen. was meinst du denn mit abstürzen ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.