Send Custom Headers with a test

In order to send custom header information with a test we should include this in the “Custom Headers” field when creating/editing the test’s settings.

All entries must be in JSON format and will be validated by the field before the submission, if you see a warning please check the entry.

When using a custom header please bear in mind that this will disable the custom user agent field on the test, and that any custom user agents should then also be added in the headers section.

Below are a few examples of how you could use this:

Example 1: Custom headers with a single entry

{"Content-type": "application/json"}

Example 2: Custom headers with multiple entries

{
    "Accept": "text/plain",
    "From": "[email protected]"
}

As you can see, each header is a key/value combination. Please do not use arrays as these will not work.

Related Articles