

HTTPClient.OnReceiveDataEvent become OnProgress

Procedure TAcHTTPClient.OnReceiveDataEvent(const Sender: TObject AContentLength: Int64 AReadCount: Int64 var Abort: Boolean) Set FHTTPClient.ProxySettings with AProxySettingsįHTTPClient.ProxySettings := AProxySettings įunction TAcHTTPClient.GetProxySettings : TProxySettings Procedure TAcHTTPClient.SetProxySettings(AProxySettings: TProxySettings) -įHTTPClient.OnReceiveData := OnReceiveDataEvent System.Classes, System.SysUtils, Winapi.Windows Property CancelDownload : boolean read FCancelDownload write FCancelDownload įunction Download(const ASrcUrl : string const ADestFileName : string): Boolean Property OnProgress : TAcHTTPProgress read FOnProgress write FOnProgress Property ProxySettings : TProxySettings read FProxySettings write SetProxySettings Procedure OnReceiveDataEvent(const Sender: TObject AContentLength: Int64 AReadCount: Int64 var Abort: Boolean) Procedure SetProxySettings(AProxySettings: TProxySettings) įunction GetProxySettings : TProxySettings TAcHTTPProgress = procedure(const Sender: TObject AStartPosition : Int64 AEndPosition: Int64 AContentLength: Int64 AReadCount: Int64 ATimeStart : Int64 ATime : Int64 var Abort: Boolean) of object The main feature is the ability to suspend or resume partial download. This is a Delphi class, based on with a function for downloading a file from a URL and saving on a filename destination: function Download(const ASrcUrl : string const ADestFileName : string): Boolean
