Article View: borland.public.cppbuilder.internet.web
Article #951Re: How to make TIdHTTP::Get() show it's current progress-state?
From: MR
Date: Sat, 18 Feb 2006 13:17
Date: Sat, 18 Feb 2006 13:17
16 lines
1742 bytes
1742 bytes
Sorry, I thought I now know all, but there is still one thing: is there a way to get the ContentLength without trying to get 'Get()' the whole file. I was looking for a kind of 'bool &Stop'-argument in the OnWorkBegin/OnWork()-methods of TIdHTTP, but did not found anything. Than I tried to raise/catch an exception from TIdHTTP::WorkStart, after I got the ContentLength from OnWorkBegin() to stop the downloading-process, but now get some strange Timeout-Exceptions (after a time >2min) and suppose this might be the reason. Probably that's a bad way and there is a much better one... Thanks a lot, Michael
Technical Details
Message-ID:
<2h7ev1h8dng1re80ip1cmk1luibgrv7cfs@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.esat.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com> <43f113b7@newsgroups.borland.com> <uaq2v1pj3n56hemn0hjimm4cpacb8rnibg@4ax.com> <43f19d5d$1@newsgroups.borland.com> <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com> <43f37208$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: Sat, 18 Feb 2006 14:17:20 +0100 Message-ID: <2h7ev1h8dng1re80ip1cmk1luibgrv7cfs@4ax.com> References: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com> <43f113b7@newsgroups.borland.com> <uaq2v1pj3n56hemn0hjimm4cpacb8rnibg@4ax.com> <43f19d5d$1@newsgroups.borland.com> <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com> <43f37208$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.44.202 X-Trace: newsgroups.borland.com 1140268577 84.57.44.202 (18 Feb 2006 05:16:17 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.esat.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail