Autor Beitrag
Hendi48
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Sa 29.12.07 23:07 
Hallo,

kann ich meinem IdHTTP irgendwie sagen, dass es nach ca. 2KB abbrechen soll?
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Sa 29.12.07 23:10 
Wenn mir jemand sagt wo ich idHTTP herbekomme, dann vielleicht...

:oops: :oops:

EDIT: Hat sich erledigt! :zwinker:


Zuletzt bearbeitet von MDX am So 30.12.07 17:59, insgesamt 1-mal bearbeitet
Hendi48 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Sa 29.12.07 23:11 
Dazu musst du die Indy's installieren.
Die findest du hier: indyproject.org/
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: So 30.12.07 01:04 
user profile icondavid-kurz hat folgendes geschrieben:
Wenn mir jemand sagt wo ich idHTTP herbekomme, dann vielleicht...

:oops: :oops:

Das gehört eigentlich nicht hierher. Wenn Du jemandem nicht helfen kannst, weil Du bspw. die Komponenten nicht kennst, dann befasse Dich außerhalb des Themas damit oder eröffne ein neues Topic dazu. In einem Topic wird nur ein Thema behandelt und vor allem nicht verschiedene von verschiedenen Usern. :mahn:
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: So 30.12.07 01:24 
Okay, ich merke es mir...
Muss noch viel lernen :oops: :oops: :oops: :oops:
LexXis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 170
Erhaltene Danke: 3



BeitragVerfasst: So 30.12.07 17:47 
Evtl könntest Du das über OnWorkBegin bzw OnWork realisieren.

Kurz hingeschmiert:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.IdHTTP1Work(Sender: TObject; AWorkMode: TWorkMode;
  const AWorkCount: Integer);
begin
  if AWorkCout >= 200*1024 then IdHTTP1.Disconnect; 
end;


Hab´s nicht getestet, aber nen Versuch ist´s wert ^^

lg
Hendi48 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: So 30.12.07 20:12 
Hm, das hab ich mir auch schon überlegt, aber das geht auf meinem Rechner nicht, da der AWorkCount erst ab 3MB zugewiesen wird (liegt an meinem IS). Gibt's da keinen anderen Weg?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 30.12.07 23:08 
wie wärs mit bliblablubb.Request.ContentRangeEnd

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Hendi48 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Mo 31.12.07 15:18 
Auch das geht nicht =( er lädt die Datei voll runter
LexXis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 170
Erhaltene Danke: 3



BeitragVerfasst: So 06.01.08 03:47 
Jetz hast demnächst alles durch ;)

Versuch doch, über FileSize() die aktuelle Größe der Datei rauszubekommen.
Bin mir allerdings nicht sicher, ob die Datei sofort angelegt wird, wenn Du den DL startest, oder ob die erst erstellt wird, wenn die Datei komplett im Arbeitsspeicher vorliegt.
Aber nen Versuch isses wert.

lg