alexfernandez / loadtest

Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.
MIT License
2.55k stars 206 forks source link

format of POST-file when not using js? #200

Closed mooreniemi closed 2 years ago

mooreniemi commented 2 years ago

Using apache bench I understood -p being basically a newline delimited json file (ndjson) but it doesn't appear to work in loadtest. What is the expected format and behavior?

If file sent into -p looks like this, it works:

{"one": "works"}

If file sent into -p looks like this, I get all errors:

{"two": "doesn't work"}
{"two": "doesn't work"}

This means I can't actually use -p to send in a list of different pre-generated payloads so reduces usefulness of that mode.

mooreniemi commented 2 years ago

Oh actually, I think I misunderstood how it works in ab as well! Sorry for my confusion.