HTTP download

更新时间:
复制 MD 格式

1. Component overview

Note

Prerequisites: None

Use this component to download content from a specified URL.

2. Inputs

Note

For details about each input parameter, see the help information in the component panel of the visual editor.

3. Outputs

Note

For details about each output parameter, see the help information in the component panel of the visual editor.

4. Component examples

4.1. Configuration example

  1. In Download URL, enter the URL for the HTTP request. This parameter is required. The URL must include a protocol type, such as `http://` or `https://`.

  2. In Save Path, enter the path where the file will be saved. You can enter the path by selecting or creating a variable, typing in the text box, or clicking the browse button to select a folder.

  3. In File Name, enter a name for the saved file. You can enter the name by selecting or creating a variable or by typing in the text box.

  4. In Wait for download to complete, specify whether to wait for the download to finish.

  5. Keep the default values for the advanced options.

image.png

4.2. Example execution result

None

5. Example flow

Setup flow

  1. Add the HTTP download component. Enter the input parameters and save the result to the `v_http_download_file_path_1` variable.

  2. Add the Record Log component. Select the `v_http_download_file_path_1` variable to print its value.

image.png

Execution result

After the flow runs successfully, the result is printed in the log panel, as shown in the following figure.