http_request_check_status_headers
Checks status of an HTTP URL.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
method | Method to call the URL (GET, POST, PUT, DELETE). This parameter is required. |
url | URL to query. This parameter is required. |
expected_status | Expected status code of the HTTP response. This parameter is required. |
headers | Headers to include in the HTTP request (as a string, without '). This parameter is optional. |
Example
method: http_request_check_status_headers
params:
headers: OPTIONAL_VALUE
expected_status: VALUE
method: VALUE
url: VALUE
Documentation
Perform a HTTP request on the URL, method and headers provided and check that the response has the expected status code (ie 200, 404, 503, etc)