SF
Size: a a a
SF
SF
RS
RS
VA
ГМ
SF
AS
AS
ГМ
AS
ГМ
ГМ
VA
AS
ГМ
ГМ
TDownload.CreateAndStart('https:\\vk.com', 'D:\tmp.html');
SB
ГМ
ГМ
TDownload.CreateAndStart('https://files.com/file', 'D:\file.tmp',
procedure(const Sender: TObject; AContentLength: Int64; AReadCount: Int64; var Abort: Boolean)
begin
ProgressBar1.Max := 100;
ProgressBar1.Position := Round((100 / AContentLength) * AReadCount);
end,
procedure(Sender: TDownload; ResponseCode: Integer)
begin
if ResponseCode = 200 then
ShowMessage('Всё ок скачалось ' + Sender.FileName);
end);