1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00
wrk/scripts/post.lua
2013-12-07 14:09:44 +09:00

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