Blitz Docs

Sprinting | Custom Headers

If you are load testing your RESTful API that requires custom headers for the API token and the credentials, use the --header option to add custom headers to your request. For example:

-H 'X-User-ID: foo' -H 'X-API-Token: abcd' http://my.cool.api/v1/get/something

adds the X-User-ID and X-API-Token headers to the request. When rushing, you can also parameterize the header values with Variables so you recreate multiple users hitting your app.

Try our Starter plan free for 14 days!
Start my Trial