platform/packages/body_parser/example/post.lua
Tobe O a13d02069e Add 'packages/body_parser/' from commit 'b4cc359637f6bc510097e97c92f17db072e6e09b'
git-subtree-dir: packages/body_parser
git-subtree-mainline: 9c36a7e981
git-subtree-split: b4cc359637
2020-02-15 18:22:28 -05:00

6 lines
No EOL
219 B
Lua

-- 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"