> Is there an example that demonstrates how to monitor a HTTPCli.Get()
> progress for displaying a progress bar?

In short, from OnHeaderEnd or OnDocBegin, use ContentLength property to know
the total file size. Then in OnDocData event you can count the bytes and
update your progress bar. Nte that ContentLength may not be sent by the
server in all cases. Either old servers or chunked transfer mode or script
generating the content do not send content length. In that case the property
value is -1. If that happend, there is now way for you to know the size of
the document !

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)

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