tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.06k stars 1.34k forks source link

--resolvers is great, but also support --resolve to behave like curl #610

Open jrwren opened 1 year ago

jrwren commented 1 year ago

Proposal

Add a -resolve flag which works like curl's --resolve

Background

When an http server is behind a load balancer, sometimes it is nice to bypass the load balancer, but the request should otherwise be the same. I can use -header 'Host: blah' and target a private IP address, but it would be nice to support --resolve like curl.

Workarounds

-header 'Host: blah' and specify IP address when requesting a URL.

DaazKu commented 11 months ago

Any way to replicate that right now?