newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.43k stars 631 forks source link

Ability to specify user agent? #123

Closed bgunsberger closed 9 years ago

bgunsberger commented 9 years ago

Hi,

I apologise if this is obvious, but I couldn't see what user agent the bees use or if there was a way to specify it. I'd like to be able to filter out bees traffic from my analytics data.

Thanks.

samdfonseca commented 9 years ago

Set the User-Agent head with the -H/--headers flag on the attack command, ex:

./bees attack -H User-Agent:bees-instance ...
bgunsberger commented 9 years ago

Thanks. Sorry, that should have been obvious.