tsenart / vegeta

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

How to run this in simple CLI - Windows #466

Closed mtravnicek closed 1 year ago

mtravnicek commented 4 years ago

I have latest build vegeta-12.7.0-windows-amd64.zip when i launch following on Nginx "Welcome to nginx!" page:

echo "GET http://localhost/" | vegeta attack -duration=12s 2019/12/26 01:39:54 bad method: "GET

oops?

tsenart commented 4 years ago

The examples given in Vegeta's help are all targeted to UNIX shells. It seems that the double quotes don't work with your particular shell. What shell is that?

mardukbp commented 4 years ago

The examples do not work in the cmd.exe shell. They work with Windows PowerShell. You can also try using Nushell.

surenderssm commented 3 years ago

@mtravnicek if you are using windows terminal try removing double quotes from your command. Following command should work for you - echo GET http://localhost/ | vegeta attack -duration=12s