platform-common-utilities/packages/body_parser/example/post.lua

6 lines
219 B
Lua
Raw Permalink Normal View History

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