-
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
Specify host header and send request against IP #581
Comments
Try this. |
@aimer1124 how does that help? The |
@ecc256 @cgoldberg |
@ecc256 were you able to achieve that? |
Just tested - Locust 0.8.1 sends host header properly. |
I used to get 401 errors, while using python Locust for a load test- but wasn't able to figure out how to send Authentication Type= Preemptive in the headers. But this clue helped and was able to figure out the solution. h={'Authorization': 'Basic PUTKEYHERE'} Thank you! |
Is there a way to specify host header and send request against IP similar to this:
Our main site has single IP and distinguish virtual sites via host header.
There are multiple web servers behind load balancer.
I need to run test against internal (particular web server) IP or external (load-balanced) IP
I guess, I can use custom DNS to map everything to IP I need, but workstation I run tests from is used for many other things...
Could somebody clarify why User-Agent header works, but Host is ignored, please?
Is there another workaround without custom DNS?
I need smth. like:
locust --host=http://IP --no-web
The text was updated successfully, but these errors were encountered: