node/tools/wrk/scripts/post.lua

7 lines
220 B
Lua
Raw Normal View History

2014-02-25 11:49:45 +08:00
-- example HTTP POST script which demonstrates setting the
-- HTTP method, body, and adding a header
wrk.method = "POST"
wrk.body = "foo=bar&baz=quux"
wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"