24.2.6 Class Download (gb.net.curl)

The Download class returns the properties that were set statically when a download was defined using the HTTP or FTP protocol, or are set interactively when a file is actively downloaded.

24.2.6.1 Properties

The Download class has these properties:

PropertyData typeDescription
CurrentLongThe number of bytes already downloaded is read out.
ErrorTextStringThe error text is read out.
KeyStringRead out the key.
PathStringThe path where the download file was saved is read.
SizeLongThe number of bytes that have to be downloaded is read out.
StateIntegerThe status of the download is read out.
TypeIntegerThe type of the download is read out.
UrlStringThe URL specified in the function DownloadManager.Add(URL, optional key) is read out.

Table 24.2.6.1.1 : Properties of the class Download

Notes:

For the download status, these integer constants are returned:

Download.NotReady 	(0),
Download.Ready 		(1),
Download.Downloading 	(2),
Download.Finnish 	(3),
Download.Error 		(4).

The Download class has neither methods nor events.