BuoyantIO / slow_cooker

A load tester focused on lifecycle issues and long-running tests
Apache License 2.0
327 stars 26 forks source link

Add flag to set request body payload #41

Closed richardmarshall closed 7 years ago

richardmarshall commented 7 years ago

Enable setting of the HTTP request body data either from a string passed directly to the -data flag, a file, or stdin.

stevej commented 7 years ago

Sorry for the long delay (holidays, etc). I like this change, could you fix the conflicts and I'll give it a thumbs up.

richardmarshall commented 7 years ago

No worries. Rebased on current master.

klingerf commented 7 years ago

On the other hand, it looks like curl uses "@-" to read from stdin, which is the same convention used in this branch. In that case, you can disregard my earlier comment.

richardmarshall commented 7 years ago

Yeah, that was intended. I based the behavior on curl.

klingerf commented 7 years ago

Thanks @richardmarshall!