Blitz Docs

Sprinting | Authentication

Blitz currently supports basic authentication that's fairly common in most RESTful APIs. In order to provide the credentials, you can use the --user option. For example:

-u foo:secret http://yourapp.example.com

adds the Authorization header to the request and automatically base64 encodes the username and the password. You can also parameterize the credentials with Variables to recreate multiple concurrent users exercising your API. For example:

-v:user number[1,10]  -u user_#{user} http://yourapp.example.com

generates 10 different users, user_1 to user_10 when rushing.

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