alexfernandez/loadtest

format of POST-file when not using js?

mooreniemi opened this issue · 1 comments

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.

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