Purpose

Calls a URL and then saves the payload of the HTTP response to a file.

Syntax

HTTPGetFile(, );

Example

This example pulls a file (a Notch image) from a URL and stores it in your Desktop.

function OnKeyPress(key)
function OnKeyPress(key)
{
    Log('Got keypress: ' + key);
    if (key == 'P') {
        Log("Getting file");
        HTTPGetFile("http://www.notch.one/wp-content/uploads/2017/12/notchlogo-retina_new.png", "C:\\Users\\My Name\\Documents\\Notch_Download.png");
    }
}