vegeta
vegeta copied to clipboard
How to run this in simple CLI - Windows
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?
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?
The examples do not work in the cmd.exe
shell. They work with Windows PowerShell. You can also try using Nushell.
@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