As part of the HTTP check request you can POST data in the request body. This is useful if you need to monitor an endpoint that only accepts POST requests to ensure it's always available and responsive. You can potentially also see how code changes impact real world performance of your API.
This guide extends from the Setting Up StackPath Monitoring article that details how to create a GET monitor.
Selecting the HTTP Method
You can specify the HTTP method by selecting POST from the 'Method' dropdown, below the URL textbox when creating or editing your monitor.
Setting the Body Content
You can set the body content that will be sent with the check in the 'Request Body Content' textarea field under 'Request Data'. It's also possible to set headers here too, but you do not need to set the
Content-Type header to
application/x-www-form-urlencoded as this is done automatically when the body content is configured and a
Content-Type header is not configured. If you require another value for your
Content-Type header, such as
application/xml you can set it using the Headers text input fields.