Jean-Paul Passama wrote:
> Hi,
> I'm trying to have a progress bar working during a file download by
> HttpClient.Get (and HttpClient.RcvdStream).
> I've seen the OnDocData that seems to receive the length of data
> downloaded. Unfortunaly, the data length isn't really the size of the
> piece of file downloaded because the packed received include the HTTP
> protocol and the data.
> Is a way to know :
> - the size of the entire file (before starting the download)

Quoted from
"An HTTP/1.1 server may also establish persistent connections with
HTTP/1.0 clients upon receipt of a Keep-Alive connection token.
However, a persistent connection with an HTTP/1.0 client cannot make
use of the chunked transfer-coding, and therefore MUST use a
Content-Length for marking the ending boundary of each message."

So it should be possible to force the server to send a content-length
header. In event OnDocBegin property ContentLength should return that

Arno Garrels

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to