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

Sending Requests With Dynamic Url #591

Closed JB0925 closed 2 years ago

JB0925 commented 2 years ago

Hi and thanks so much for this great tool. I am contributing to a wrapper for Vegeta Load Test. We want to use the JSON format, and we have a list of urls we want to target. I have seen that there is a way to use the JSON format to dynamically alter request bodies. Is there a way to dynamically pass in a url to the JSON format. What we have works successfully for one url at a time, but we would like to be able to go from one url to the next if possible. To be clear, I am looking for something along the lines of:

jq -ncM '{"method": "POST", "url": "https://www.thisurl.com".......}'

and then the next request would be the same method, body, etc., with just a different url.

Thanks so much for your time!