Adding HTTP header to multiple HTTP requests

During the development process, there might be a change in HTTP headers. To modify the test script in a faster and easier way, you can add the HTTP headers in batches to the requests.

About this task

To add HTTP headers to multiple HTTP requests at once:

Procedure

  1. Open the test.
  2. In the test hierarchy, select a request (press Ctrl key to choose multiple requests).
  3. From the Options drop-down list, select Add > HTTP Header. The Add/Edit Headers window opens.
    Add/Edit Header dialog
  4. To add a standard header:
    1. In the Available Headers list, locate the header to add and click it. Type the name of the header in the Quick search field and select the type of header that you are looking for in Header types list to quickly locate a header in the Available Headers list.

    2. Click the right-angle bracket (>). The selected header moves into the Selected headers list and your cursor is placed in the value column.

    3. Type the value for the header.

  5. To add a custom header:
    1. In the Header types list, select Custom.

    2. At the bottom of the window, in the New custom header area, type the header information in the Name field and the Value field, and then click Insert. The custom header is added to the Selected headers list.

    3. When you have finished adding headers, click OK.