Displaying the downloading status |
|
Hello all.
I am using Indy 9.0 and BCB 6(Pro) for downloading from HTTP server.
void Form1::DownloadFile()
{
try
{
std::auto_ptr 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
|
Re: Displaying the downloading status |
|