🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #520

Displaying the downloading status

#520
From: bar
Date: Sat, 05 Jan 2008 09:00
28 lines
1828 bytes
Hello all.

I am using Indy 9.0 and BCB 6(Pro) for downloading from HTTP server.

void Form1::DownloadFile()
{
    try
    {
        std::auto_ptr<TFileStream> strm(new 
TFileStream("C:\\test.log",fmCreate));
        HTTP->Request->Pragma = "no-cache";
        HTTP->HandleRedirects = true;
        HTTP->Get("http://www.abc.com/~webtest/tests/test.log", strm.get());
    }
    catch(const Exception &E)
    {
           ShowMessage("Download function:\n"+E.Message);
    }
}

TldHTTP component is created at design time.
The size of the file is 3 MB, the download is working fine.
I need to show the details Data Trasfer Rate, Total Size of File Downloading 
And Number of Bytes Downloaded, like IE shows while downloading.
I really appreciate for the suggestions.

Thanks
SA 
Technical Details
Message-ID: <477f4728@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!news.astraweb.com!newsrouter-eu.astraweb.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8b06f998d007fbf3,start
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "bar" <shaikakbar250281@yahoo.co.in>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Displaying the downloading status
Date: Sat, 5 Jan 2008 12:00:29 +0300
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.150.224.36
Message-ID: <477f4728@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1199523624 62.150.224.36 (5 Jan 2008 01:00:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!news.astraweb.com!newsrouter-eu.astraweb.com!newsfeed2.ip.tiscali.net!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail