POST form-encoded payload
13-http-post-form.yaml
HTTP(S)
What this example does
This example demonstrates post form-encoded payload.
Checks and behavior
- Sends an POST request to http://127.0.0.1:8080/form.
- 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: POST form-encoded payload
url: http://127.0.0.1:8080/form
request:
method: POST
headers:
Content-Type: application/x-www-form-urlencoded
body: 'name=demo&mode=test'
tests:
status:
allow: [200, 302]