Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created January 22, 2014 16:41
Show Gist options
  • Save PanosJee/8562149 to your computer and use it in GitHub Desktop.
Save PanosJee/8562149 to your computer and use it in GitHub Desktop.
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