platform/packages/body_parser/example/post.lua

6 lines
219 B
Lua
Raw Normal View History

2017-10-12 02:32:42 +00: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"