Http download

更新时间:
复制 MD 格式

1. Overview

Note

Prerequisites: None

This component sends an HTTP GET request to a download URL and saves the response to a specified file path.

Note

If you need to download a file by clicking an element on a web page, see Download file (Web).

2. Inputs

Note

For details on each input parameter, see the help information in the visual editor's component panel.

3. Outputs

Note

For details on each output parameter, see the help information in the visual editor's component panel.

4. Examples

4.1. Configuration example

  1. The download URL is a required parameter that specifies the download URL for an HTTP request (the URL must include the protocol type, such as http:// or https://).

  2. In the Save Path field, you can specify the path for the file to be downloaded by selecting or creating variables, entering the path in the text box, or browsing to select a folder.

  3. In the File name field, you can specify the file name by selecting or creating a variable, or by entering text.

  4. In Wait for file download to complete, select whether to wait for the file download to complete.

  5. Keep the default values for the advanced options.

image.png

4.2. Execution result

None

5. Workflow example

Procedure

  1. Use the Http download component, set its input parameters, and save the output path to the v_http_download_file_path_1 variable.

  2. Use the Record Log component to print the value of the v_http_download_file_path_1 variable.

image.png

Execution result

After the workflow runs successfully, the result is printed in the log panel.

image.png