Autor Beitrag
ralfi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 153



BeitragVerfasst: Do 12.08.04 15:03 
Hallo!

OK, ich weiss bereits, dass man mit

ausblenden Quelltext
1:
2:
3:
4:
...
IdHTTP1.Head('http://www.meineseite.de/datei.htm');
Edit1.Text := IntToStr(IdHTTP1.Response.ContentLength);
...


die Größe der zu ladenden Datei, in diesem Fall einer HTML-Datei, ermitteln kann. Wird dabei den ganzen Quelltext der Datei zurückgegeben, genauso wie beim IdHTTP.Get, oder wirklich nur die Header-Informationen?
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Do 12.08.04 15:13 
Theoretisch nur der Header!
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
<HEAD / HTTP/1.0
<Host: www.google.de
<
>HTTP/1.0 200 OK
Cache-Control: private
Content-Type: text/html
Set-Cookie: PREF=ID=3cdbf834179c064f:LD=de:TM=1092320016:LM=1092320016:S=uZNwT80xRGr71Xbz; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.de
Server: GWS/2.1
Content-Length: 2463
Date: Thu, 12 Aug 2004 14:13:36 GMT
Connection: Keep-Alive


>

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.