🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#939
From: MR
Date: Mon, 13 Feb 2006 19:12
23 lines
1521 bytes
Is there a way to make TIdHTTP::Get() show it's current
progress-state, like it is displayed in IE when downloading a file?

I tried to modify my current code 

  TFileStream *stream=new TFileStream(dst_file,
fmCreate|fmShareDenyRead);
  try {
    TIdHTTP->Get(_web_address, stream);
  }
  ...

in the hope I can limit the stream's buffer to a certain number of
bytes and recall Get() again until the whole file is donwloaded, but
unfortunately without success.

Naturally I'm not too fixed on TIdHTTP::Get. If there is another way
with which this is possible, please let me know...


Thanks a lot,

Michael
Technical Details
Message-ID: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,1a9645b22bbe86cb,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: MR <>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: How to make TIdHTTP::Get() show it's current progress-state?
Date: Mon, 13 Feb 2006 20:12:30 +0100
Message-ID: <rpl1v11s7qjgne4qgo2ihebrn2of6sg3iu@4ax.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.47.161
X-Trace: newsgroups.borland.com 1139857892 84.57.47.161 (13 Feb 2006 11:11:32 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail