http_request_content_headers
Make an HTTP request with a specific header.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
method | Method to call the URL (POST, PUT). This parameter is required. |
url | URL to send content to. This parameter is required. |
content | Content to send. This parameter is required. |
headers | Headers to include in the HTTP request. This parameter is optional. |
Outcome conditions
You need to replace ${url}
with its actual canonified value.
- ✅ Ok:
http_request_content_headers_${url}_ok
- ☑️ Already compliant:
http_request_content_headers_${url}_kept
- 🟨 Repaired:
http_request_content_headers_${url}_repaired
- ☑️ Already compliant:
- ❌ Error:
http_request_content_headers_${url}_error
Example
method: http_request_content_headers
params:
content: VALUE
url: VALUE
headers: OPTIONAL_VALUE
method: VALUE
Documentation
Perform a HTTP request on the URL, method and headers provided and send the content provided. Will return an error if the request failed.