Open xiaobiaozhao opened 6 months ago
post_json.lua
local cjson = require "cjson" local json_encode = cjson.encode local json_decode = cjson.decode wrk.method = "POST" wrk.body = json_encode({ ["key"] = "value" }) wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"
post_json.lua