-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to perform basic authentication? #811
Comments
like this: http://docs.python-requests.org/en/master/user/authentication/#basic-authentication |
@cgoldberg For now, I have such function:
I can print the request headers: Here's what I get: And I need to get the following in JSONformat: Thank you in advance! |
closing this since original issue was solved. |
it's a dict.. so use the key: |
Description of issue / feature request
Hi guys! Tried to find the answer for my question among the other issues but couldn't find. I have basic auth in my web application. Could someone send me the example of locustfile.py, how to correctly perform the auth in this case?
Tried the following code, but it doesn't work. I'm getting the "HTTPError('401 Client Error: Unauthorized for url"
My locustfile.py
The text was updated successfully, but these errors were encountered: