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

Allow the user to enter the content type parameter #140

Closed kyoung closed 8 years ago

brianpatrickreavey commented 8 years ago

Using your patch now for am XML payload. Works great.

Two notes:

  1. the parameter help text is missing a closing quote
  2. the '-t' flag is already used - would recommend -P

attack_group.add_option('-P', '--contenttype', metavar="CONTENTTYPE", nargs=1, action='store', dest='contenttype', type='string', default='text/plain', help="ContentType header to send to the target of the attack.")

cosmin commented 8 years ago

I can merge this if someone updates the pull request with @brianpatrickreavey's feedback

kyoung commented 8 years ago

Thanks @brianpatrickreavey, not sure how I missed that.

brianpatrickreavey commented 8 years ago

Hi @cosmin, is there anything else you needed on this? The updates should now be in the PR.