Action: HTTP Request

Revision as of 13:50, 31 March 2022 by MacroDroidDev (talk | contribs)

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.

The 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.

Query Parameters can be set for any given request. The query parameters are the ones you typically see within the url string after the ?

For example: https://www.someurl.com?searchTerm=something