25 lines
509 B
Lua
25 lines
509 B
Lua
chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
|
|
request = function()
|
|
path = "/s/"
|
|
|
|
for i = 1,16 do
|
|
local rint = math.random(1, #chars)
|
|
path = path .. chars:sub(rint, rint)
|
|
end
|
|
|
|
body = "https://example.com/"
|
|
|
|
for i = 1,32 do
|
|
local rint = math.random(1, #chars)
|
|
body = body .. chars:sub(rint, rint)
|
|
end
|
|
|
|
wrk.path = path
|
|
wrk.method = "POST"
|
|
wrk.body = body
|
|
wrk.headers["X-Api-Key"] = "test"
|
|
|
|
return wrk.format()
|
|
end
|