Custom User-Agent and request headers
14-http-user-agent-custom-headers.yaml
HTTP(S)
What this example does
This example demonstrates custom user-agent and request headers.
Checks and behavior
- Sends an GET request to http://127.0.0.1:8080/health.
- Checks allowed/denied HTTP status codes.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
name: Custom User-Agent and request headers
url: http://127.0.0.1:8080/health
request:
method: GET
user_agent: MyIntegrationCheck/2.0
headers:
Accept: application/json
X-Environment: preprod
tests:
status:
allow: [200]