🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #947

Re: How to make TIdHTTP::Get() show it's current progress-state?

#947
From: MR
Date: Wed, 15 Feb 2006 06:50
16 lines
1801 bytes
>Yes, but not 100% reliably.  There is the TIdHTTP.Response.ContentLength
>property, but it is only valid if the server reported the file's length
>ahead of time.  Depending on how the file is being transferred internally
>(chunked, compressed, etc), the file's length is not always available.

This works fine, thank you.

Fortunately/Unfurtunately with my tries I get always(!) useful
information in TIdHTTP.Response.ContentLength, I suppose
TIdHTTP.Response.ContentLength has a value of 0, if the real size
could not be find out in advance!? Is this assumption correct or is
there another way?

Thanks,

Michael
Technical Details
Message-ID: <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com> <43f113b7@newsgroups.borland.com> <uaq2v1pj3n56hemn0hjimm4cpacb8rnibg@4ax.com> <43f19d5d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,1a9645b22bbe86cb
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: MR <>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: How to make TIdHTTP::Get() show it's current progress-state?
Date: Wed, 15 Feb 2006 07:50:24 +0100
Message-ID: <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com>
References: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com> <43f113b7@newsgroups.borland.com> <uaq2v1pj3n56hemn0hjimm4cpacb8rnibg@4ax.com> <43f19d5d$1@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.57.40.239
X-Trace: newsgroups.borland.com 1139986165 84.57.40.239 (14 Feb 2006 22:49:25 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail