Difference between revisions of "Action: HTTP Request"
(Created page with "This action can be used to make HTTP requests to a server end-point. This can be used for a variety of purposes but typically use cases are: - Invoking some functionality on...") |
(No difference)
|
Revision as of 13:46, 31 March 2022
This action can be used to make HTTP requests to a server end-point. This can be used for a variety of purposes but typically use cases are:
- Invoking some functionality on a remote server (WebHook). For example, tell your home automation server to turn of a light - Request some data from a remote web based API. For example, request the latest weather forecast data from a Weather API.
The HttpRequest action supports the following HTTP request methods: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, TRACE
You can optionally use basic authorization by supplying a username and password for services that support this.
HTTP Return Code can be saved into an integer variable which indicates if the call was successful or not.
The HTTP response can be saved into a String variable or can be saved directly to a file.