From Xojo Documentation


HTTPSocket.DownloadComplete(URL as String, HTTPStatus as Integer, Headers as InternetHeaders, File as FolderItem)

Supported for all project types and targets.

Executes when a download is complete after using the Get or Post methods and passing the optional parameter.

URL contains the URL that was downloaded. File is the FolderItem the data was downloaded to, and Headers is a dictionary of the HTTP headers that were returned by the server. The HTTPStatus code is also passed to this event. These codes are used for messages such as "Page not found" (error 404), and so forth.