Applies to ReadyAPI 3.1, last modified on March 26, 2020

The Headers panel shows the headers of the message that will be sent to a service.

The Headers panel

Click the image to enlarge it.

Adding headers

In ReadyAPI, you can add headers to your requests in several ways:


To add a header manually, click and enter a name of the header. ReadyAPI will add it to the open request. You can then specify the required header value.

From the clipboard

To import a header from the clipboard, click . ReadyAPI will try to create a new header by using the clipboard values. The clipboard must contain the appropriate header value pairs, for example name:value. To add multiple headers at once, copy each header value pair from a separate line, for example:


From a file

To import a header from a file, click and specify the path to the file containing header values. The target file should be a plain text file with one header value pair per line.

From a script

You can use the RequestFilter.filterRequestevent handler to add headers by using a script. See the Add header to request script sample to learn how to do it.

Using property expansions

To specify header data, you can either enter a string, numerical value, date, or a value of another type, or you can refer to a custom property of a test case, suite, or project. To specify a property, you use syntax like ${#location#property-name}:

Web service testing with ReadyAPI: Referring to a properrty ina request header

For complete information on syntax and supported property sources, see Property Expansion.

You can also specify a property through a dialog:

  1. Right-click within the Value cell and pick Get Data from the context menu.

  2. Select the desired property in the subsequent dialog:

Web service testing with ReadyAPI: Get Data command in the Headers panel

Deleting headers

To delete a header, select it and click . Confirm that you no longer need the specified header.


Your custom server may work incorrectly and may return the 500 status code. This may happen if the Content-Length: 0 header was encountered in the sent empty request. To solve the issue, add the following parameter to the vmoptions file and restart ReadyAPI in order for the changes to take effect:

See Also

Bottom Request Panels
Top Request Panels
Using Cookies

Highlight search results