The Headers panel shows the headers of the message that will be sent to a service.
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.
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:
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.
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
For complete information on syntax and supported property sources, see Property Expansion.
You can also specify a property through a dialog:
Right-click within the Value cell and pick Get Data from the context menu.
Select the desired property in the subsequent dialog:
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: