Autor Beitrag
FrEaKY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: So 26.09.04 11:14 
Hi!
Kann mir jemand mal genau sagen wie man mit idHTTP dateien ziehen kann? Ich hab schon gesucht aber kein komplettes beispiel gefunden :roll: Ich will da ausserdem noch eine Fortschrittsanzeige einbauen und dateigrösse, und restzeit aber mit möglichst wenig code!:?
Mfg Freaky
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: So 26.09.04 15:38 
Hallo!

Benutzen von idHTTP: www.delphi-source.de...torials/indy/?page=5

Fortschritt: Event "onWork" von idHttp


Zeitberechnung am Beispiel von Streams:


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
I^= Verstrichene Teit in Sekunden
Ge^= Geschwindigkeit

ge:=Position/Zeit (p/I);

Zeit:=((Gesamtgröße/ge)-(p/ge))


Alstar
FrEaKY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: So 26.09.04 16:55 
hey thx
ich habs mal genauso probiert wie da im beispiel aber krieg folgenden fehler wenn ich auf den button klicke:
Zitat:
Im Projekt1.exe ist eine Exception der Klasse EidHTTPProtocollException aufgetreten. Meldung: 'HTTP/1.1 400 Bad Request'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.

die .zip datei die ich downloaden wollte is zwar auch da aber 0KB lol
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: So 26.09.04 17:08 
Zitat:

'HTTP/1.1 400 Bad Request'


Ich schätze mal, dass die Datei nicht vorhanden ist.

Alstar
FrEaKY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: So 26.09.04 18:27 
soooo habs jetz ersma hingekriegt :D
aber noch eine sache: kann man irgentwie verhindern, dass sich das proggi beim downloaden aufhängt, da ich zu der zeit auch noch buttons ua. betätigen können möchte?!
FrEaKY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 235


D7
BeitragVerfasst: Mi 29.09.04 22:49 
kann man irgentwie verhindern, dass sich das proggi beim downloaden aufhängt, da ich zu der zeit auch noch buttons ua. betätigen können möchte?
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Do 30.09.04 21:56 
idantifreeze ;)