Default HTTP headers
You can set the HTTP headers of Folder and Project nodes, that will be inherited by child nodes and used in RequestStep nodes requests by default. Let's see how we can set and use default headers.
You can define your default headers in the Folder node. To do this, click on the Headers button on the Folder node toolbar.
You'll see the default HTTP headers editing dialog:
The default HTTP headers editing dialog
At the top of the dialog you can see a read-only headers list inherited from parents. Next the chosen Folder node headers are specified. Apart from adding, deleting, editing (including bulk edit), it is possible to disable certain headers which will not be included in the resulting request. Headers state (enabled/disabled) is inherited as well.
You can also override headers in child nodes. For example, setting the
Hello, TestMacevalue to the
RootDefaultHeader1header will override the inherited header, and in child nodes of the chosen Folder node the
RootDefaultHeader1header will have the
Hello, TestMacevalue. Note that the value of the parent
RootDefaultHeader1header will remain unchanged (
Default headers are used in RequestStep nodes requests. They are inserted automatically and don't require user interaction. The interface of RequestStep requests headers editing is identical to the one of a Folder node.
See the file representation of a Folder node. The
requestData.headersfield is used to store a headers list, and the
requestData.disabledInheritedHeadersis used to store disabled headers. The same format applies to RequestStep nodes.