Use ContentLength property to get the total size of what you are downloading.
Note that ContentLength is not mandatory. Some - old - webservers do not send 
the value in their
reply header.

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

----- Original Message ----- 
From: "Nick" <[EMAIL PROTECTED]>
To: <twsocket@elists.org>
Sent: Wednesday, August 03, 2005 8:35 AM
Subject: [twsocket] Http - total to download


> Hello there,
>
> I am using the HttpCli component, and I can use HttpCli1.RcvdCount on the 
> OnDocData event,
owever  - is there some Total variable which I can use to get the total size of 
what I was getting.
>
> Ie if I was downloading an item that was 5MB, how can I show what the file 
> size is, and a progress
bar?
>
> Thanks a lot.
>
> Regards
> Nick
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to