Skip to content

ECA Helper: Http Request

Plugin ID: eca_helper_http_request

Add Http request for ECA

Fields

Method — config key: method

Type: select · Required: no · Default: get

Allowed values: get, post, patch, put, delete, head

URL — config key: url

Type: textarea · Required: yes · Default: empty string

Data — config key: data

Type: textarea · Required: no · Default: empty string

Data YAML — config key: data_yaml

Use Data as yaml format.

Type: select · Required: no · Default: no

Allowed values: no, yes

Data Serialization — config key: data_serialization

Type: select · Required: no · Default: raw

Allowed values: raw, json, url_encode, multipart

Query Parameters — config key: query_parameters

YAML format, for example mykey: myvalue. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"

Type: textarea · Required: no · Default: empty string

Headers — config key: headers

Headers with YAML format.

Type: textarea · Required: no · Default: empty string

Cookies — config key: cookies

Cookies with YAML format.

Type: textarea · Required: no · Default: empty string

Options — config key: request_options

The Guzzle request options with YAML format. Reference: https://docs.guzzlephp.org/en/stable/request-options.html

Type: textarea · Required: no · Default: empty string

Name of response token — config key: token_name

The response value will be loaded into this specified token. You can access [token_name:body] raw response, [token_name:json] when return is valid json, [token_name:headers], [token_name:status], [token_name:client_error] > 0 when has problem. Please provide the token name only, without brackets.

Type: textfield · Required: yes · Default: empty string