Created
January 22, 2014 16:41
-
-
Save PanosJee/8562149 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fetchdata() | |
local phandle = assert(io.open('event.json', 'r')) | |
local pdata = phandle:read('*all') | |
phandle:close() | |
return pdata | |
end | |
wrk.method = 'POST' | |
wrk.body = fetchdata() | |
wrk.headers['Content-Type'] = 'application/json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment