Custom HTTP headers

Adding custom HTTP headers to requests

You can configure mabl to pass custom HTTP headers with each request in plan runs and in local ad hoc runs. These custom headers may be used for authentication or to exercise some specific behavior of your application.


Using authorization headers

If a given request already has authorization headers, mabl does not apply any additional authorization headers to it. Adding a custom HTTP header with authorization only works on requests that do not contain authorization headers already.

Adding custom HTTP headers to a plan run

To specify custom HTTP headers for a plan, take the following steps:

  1. Go to the Plans section.
  2. Choose a specific plan.
  3. Click on the pencil icon to open the Edit Plan page.
  4. Scroll to the Device settings section.
  5. Click on Additional settings to open the dropdown menu.
  6. Toggle on "Send custom HTTP headers."
  7. Add one or more header key-value pairs.
Adding a custom HTTP header

Adding a custom HTTP header

  1. Click the Save plan button at the bottom of the page.

Adding custom HTTP headers to Trainer and local runs

To apply custom HTTP headers during training sessions and local runs, open the Preferences menu: Edit > Preferences.

Showing the path to the Preferences menu: Edit > Preferences

Preferences menu

Select the HTTP headers option on the left and add any extra headers as needed. To turn off a header without removing it, uncheck the corresponding checkbox under the "Enabled" column.

Custom HTTP headers in the Preferences menu

Adding custom HTTP headers in the Preferences menu



Configuring custom HTTP headers is not supported for ad hoc cloud runs of a single test.