node-http-perf icon indicating copy to clipboard operation
node-http-perf copied to clipboard

Post method

Open Kikobeats opened this issue 10 years ago • 2 comments

I love this package, but what about make a post method?

Kikobeats avatar Feb 03 '15 17:02 Kikobeats

How do you envision it being used? Specifically, how do you think that PUT/POST data should be specified?

zanchin avatar Feb 03 '15 17:02 zanchin

Ideally can be useful indicate the method with -m <METHODNAME> and use GET by default.

For de data just -d and in the config similar convert the command in the verbose mode:

{
method: "POST",
data: "{'hello':'world`}"
}

common CLI for test load use -P option for indicate that is a POST method (https://www.npmjs.com/package/loadtest) or use -M parameter and later specify the method (like -M POST)

Kikobeats avatar Feb 03 '15 18:02 Kikobeats