Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mi 02.04.03 11:53 
Wie bekomme ich heraus wie groß eine Datei im Internet groß ist???
und wie binde ich dies in eine Downloadprocedure ein??? :?:
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Mi 02.04.03 12:00 
Zitat:

Using Indy, you can call TIdHttp.Head(sUrl) to find the size of the URL.
TIdHttp.Response.ContentLength will contain the size of the URL resource
when present.


wer googelt der findet ...

_________________
hans bist du das ?
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mi 02.04.03 13:01 
Titel: Thanks
Danke inselberg,
Ich probier`s mal aus :idea: ...

G-man
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 02.04.03 17:12 
wer die IndyKomponenten nicht verwenden will, der kann das auch ohne machen. Dazu sollte man sich mal über folgende Funktionen informieren:

- InternetOpen
- InternetOpenURL
- HTTPQueryInfo

Damit bekommt man so einige Infos über ne Datei im Inet zusammen.

P.S.: Die Funktionen sind in der Unit WinInet deklariert.

_________________
Viele Grüße
Jakob
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Do 03.04.03 09:30 
Vielen Dank für diesen Tipp,

die letztere Variante werde ich warscheinlich vorziehen...

G-man :eyecrazy: