JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.95k stars 387 forks source link

Different header per URL #156

Closed dewang-akoni closed 3 years ago

dewang-akoni commented 5 years ago

I am trying to test an authenticated system simulating multiple users. I know I can use the URLs file to add multiple URLs but I would like to send a different set of headers for each URL. Would it be possible to make the "-H" header syntax from the command line for a single URL to be supported as a param against each URL in the URLs file?

So you'd have

# user 1
http://homer.whoohoo.com/index.shtml -H "Authorization: Bearer User1"
http://homer.whoohoo.com/howto.jsp -H "Authorization: Bearer User1"

#user 2
http://homer.whoohoo.com/index.shtml -H "Authorization: Bearer User2"
http://homer.whoohoo.com/howto.jsp -H "Authorization: Bearer User2"