Set default headers#

Default headers are used in all project requests.

By default, PFLB Platform sends requests with the user-agent header with the Mozilla/5.0 value. To change the standard value of this header:

  1. On the Thread groups tab of the project, click Actions ⋮ and select Set default headers. The window opens:

    ../_images/um_set_default_headers.en.png
  2. Change the value for the user-agent header, for example specify Chrome/51.0.2704.103.

  3. Click Apply.

To add default headers:

  1. On the Thread groups tab of the project, click Actions ⋮ and select Set default headers.

  2. Add default headers:

    1. Enter the name of the parameter in the Key field. To enter the name of the parameter in the format ${expression}, click P and select the parameter. Don’t use spaces in the parameter name.

    2. Enter the value of the parameter in the Value field. To enter the name of the parameter in the format ${expression}, click P and select the parameter.

      ../_images/um_select_parameter.png

      You can select the parameters with the P button, if you have added these parameters in the test project. For more information, see Add parameters to a test.

  3. Click Apply.

To delete the default header, click delete_button.