Download File#

Save a file from the internet to the User's computer.

URL

[Text] Link to the file that needs to be downloaded.

Must start with a protocol, for example,

"http://www.mydomain.com/myfile.zip".

File Name

[Text] The name of the file with which to save the downloaded file on the User's computer.

You can enter the full file name including the path. If you specify only the file name, it will be created in the Robot's working folder. If you specify a full or relative path, it will be saved where you indicate.

Auto-ExtensionIf enabled, the extension of the specified file name will be replaced with the extension that the server provides when downloading the file.
UserAgentUserAgent to be used when downloading.
TLS 12

If checked, the secure TLS 12 protocol will be used when accessing the

Web page.

Otherwise, the outdated TLS 11 protocol will be used.

Headers[Dictionary] Headers passed in the request.
Cookies

[List] List of cookies. This property should contain a list of Cookie objects.

The list can be obtained using the "Data Table in Cookies" block, using the "Get Cookies" block from the "Browser Automation" palette, using the output property "Cookies" of this block.

Login[Text] Login for basic authentication. An Authorization header is created.
Password[Text/SecureString] Password for basic authentication. An Authorization header is created.
Timeout[Number] Timeout in seconds.
Alternative MethodThe alternative method uses the base class WebClient.
Response Code[Number] HTTP response code.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value of the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation.

Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value of the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.