🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#952
From: Remy Lebeau (TeamB)
Date: Sat, 18 Feb 2006 19:42
18 lines
1795 bytes
<MR> wrote in message news:2h7ev1h8dng1re80ip1cmk1luibgrv7cfs@4ax.com...

> is there a way to get the ContentLength without trying
> to get 'Get()' the whole file.

Use the Head() method.  The HEAD command retreives just the headers, whereas
the GET command retreives the headers and the content.

> I was looking for a kind of 'bool &Stop'-argument in the
> OnWorkBegin/OnWork()-methods of TIdHTTP, but did
> not found anything.

There is nothing in Indy 9 for that.  In Indy 10, there is a new
OnHeadersAvailable event which has a VContinue parameter.


Gambit
Technical Details
Message-ID: <43f7779b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!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> <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com> <43f37208$1@newsgroups.borland.com> <2h7ev1h8dng1re80ip1cmk1luibgrv7cfs@4ax.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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com> <43f113b7@newsgroups.borland.com> <uaq2v1pj3n56hemn0hjimm4cpacb8rnibg@4ax.com> <43f19d5d$1@newsgroups.borland.com> <okj5v11entds8ea5fs7q8u8n1j2ve1sj33@4ax.com> <43f37208$1@newsgroups.borland.com> <2h7ev1h8dng1re80ip1cmk1luibgrv7cfs@4ax.com>
Subject: Re: How to make TIdHTTP::Get() show it's current progress-state?
Date: Sat, 18 Feb 2006 11:42:33 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43f7779b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1140291483 68.69.17.41 (18 Feb 2006 11:38:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail