rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.66k stars 1.17k forks source link

JSON support? #201

Open dimka11 opened 4 years ago

dimka11 commented 4 years ago

How can I post some json to?

mgoria commented 4 years ago

A POST request with a JSON payload could be sent as follow

hey -m POST -D ./payload.json -T application/json -H "<your_auth_headers>" -n 100 -c 10 https://example.com/post-endpoint