WGet (Download HTTP)

Discover more about the WGet (Download HTTP) component and how to use it on the Digibee Integration Platform.

WGet (Download HTTP) is a component that downloads an arbitrary file via a URL.

Parameters

Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB).

ParameterDescriptionDefault valueData type

URL (DB)

Where the file will be downloaded from - Double Braces expressions are supported.

https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html

String

Headers

Headers of the call.

N/A

Key-value Pairs

Query Params

Query parameters of the call.

N/A

Key-value Pairs

Account

Account to be used by the component. Supported accounts: ApiKey, Basic, Certificate Chain, Custom Auth Header, Oauth2, and Oauth Bearer Token.

N/A

String

Fail On Error

If the option is enabled, the execution of the pipeline with error will be interrupted; otherwise, the pipeline execution proceeds, but the result will show a false value for the “success” property.

False

Boolean

Allow Insecure Calls To HTTPS Endpoints

When activated, the option allows non-reliable calls to HTTPS endpoints to be made.

False

Boolean

Binary File

If activated, the option returns the base64 of the file.

False

Boolean

Local Save

If activated, the option allows the file to be saved locally.

False

Boolean

File Name (DB)

Name or full file path (i.e. tmp/processed/file.txt) of the local file to be downloaded or uploaded.

N/A

String

WGet in action

Example with static Double Braces

URL

https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html

Example with dynamic Double Braces

URL

{{ message.example.url }}
https://www.download.com/file/{{ message.id }}/pdf

Messages flow

Input

If using Double Braces to fill in the parameters, you don’t have to specify the input format

File Name overrides the default name and URL overrides the default URL.

Output

If the option Local Save is activated:

{
    "fileName": "","success": ""    
}

If the options Local Save and Binary File are activated:

{
    "fileBase64": ""
}

If the options Local Save and Binary File are NOT activated:

{
    "fileText": ""
}

In case of errors:

{
    "error": {
        "exception": "",
        "message": ""
    }
}

Last updated