HTTP Client
This trigger action will execute an HTTP request to a specified server via GET, POST, PUT or DELETE.
Parameters description
Parameters | Descriptions |
---|---|
Library | None or libcurl can be selected to be the preferred implementation. Different libraries can provide extra functionality. |
Operation | HTTP defines methods to indicate the desired action to be performed on the identified resource. This action currently supports GET, POST, and PUT methods. |
URL Parameters | URL of the specified server to receive or send the HTTP request. |
Header Fields | Additional information passed between the client and the server. |
Body | The body of the request. This can either be raw or using the helper form. The format of the body will be dictated by the receiving server. Body: Raw takes precedence over Body: Form. |
Mode | Type of data that will be contained in the body. |
Show HTTP Request | If set to True, displays the HTTP request sent. |
Username | Username to be used in the HTTP authentication. This is only available when libcurl Library selected. |
Password | Password to be used in the HTTP authentication. This is only available when libcurl Library selected. |
libcurl Option JSON |
Users can enable extra libcurl options with this JSON Compound String. A list of options can be found at https://curl.se/libcurl/c/curl_easy_setopt.html. Only Boolean, integer and string options are supported. Here is an example to set USERAGENT, to disable SSL server validation and to update connection timeout: { "USERAGENT":"Secret Agent", "VERIFYPEER": false, "CONNECTTIMEOUT_MS": 2000 }
|
Input tab
Input | Description |
---|---|
URL | URL of the specified server to receive or send the HTTP request. |
Timeout | The amount of time (in seconds) the server will wait for a response. |
Output tab
Output | Description |
---|---|
URL | URL of the specified server to receive or send the HTTP request. |
Result | The response. |
Result Status | The response codes indicates whether a specific HTTP request has been successfully completed. Trigger completion indicates that if http client was able to communicate with server regardless of the result of the request. For example, trigger would still complete successfully if the http response status code is 404 (page not found). |
Error Message | libcurl Error Message. This is only available when libcurl Library selected. |