HTTPX_Download

HTTPX_Download(const URL[], const Filename[] = "", const CompleteHandler[] = "", const ProgressHandler[] = "", Port = (80<<443), RequestType = REQUEST_GET, const Username[] = "", const Password[] = "", ...) Begins download of a URL. Read parameters for information. Parameters: const URL[] URL that you want to download. (Optional) const Filename[] Where should the information be stored? If no filename is entered it will download as a "stream". This means the data will be thrown away after it passes the buffer. You can read the data on progress forward and make use of it there. (Optional) const CompleteHandler[] = "" The function you want called when the download is complete. (Optional) const ProgressHandler[] = "" The function you want called when the download is in progress. This will be called every time data is downloaded. (Optional) Port = 0 The port that should be used. If this is left at default it will use 80 for http and 443 for https (when supported). (Optional) RequestType = REQUEST_GET What type of request should be used. If this is left at default it will use GET. Possible values so far are REQUEST_GET and REQUEST_POST. (Optional) const Username[] = "" (Optional) const Password[] = "" These are used to login to sites that require you to. It's only used for Basic authentication, not POST for example. Returns an DownloadID of the download that may be used to abort the download.

Syntax

native HTTPX_Download(const URL[], const Filename[] = "", const CompleteHandler[] = "", const ProgressHandler[] = "", Port = 0, RequestType = REQUEST_GET, const Username[] = "", const Password[] = "", ... /* For possible future use */)

Usage

URL
Filename
CompleteHandler
ProgressHandler
Port
RequestType
Username
Password
Defined in httpx.inc at line 219 . This documentation was automatically generated from source.