HttpDownload

Top  Previous  Next

 

The HttpDownload command allows you to download a specified file from the internet to your computer using Http transfer protocol.

 

Command Syntax

 

HttpDownload:[Url],[TargetFolder],[TargetFileName]

 

The colon after the command and the commas between parameters are compulsory. Any additional spaces or characters will cause an error to be thrown. The command itself is not case sensitive, but parameters may be depending on the operating system and locale.

 

Parameters:

 

Url: A valid URL defining the location of the file to be downloaded

TargetFolder: The fully qualified location on the local machine to which the file(s) should be downloaded

TargetFileName: The name for the file to be downloaded. If this is blank or not specified, the filename from the URL will be used automatically

 

The TargetFileName parameter is optional. All other parameters are compulsory. If any of those parameters are missing or invalid an error will be thrown.

 

Example:

 

HttpDownload:"https://someserver.com/myimage.png","C:\Downloaded Images","DownloadedImage.png"

 

See Also: FtpUpload FtpDeleteFile