http.http.post
Declaration
lua
http.post(url [, timeout, headers, data, noEscape])
Description
HTTP POST request. Named args: http.post{url=, json=, data=, upload_file=}.
Parameters
`url` (string)
`timeout`, `headers`, `data` (string or table)
Named: `json=` table auto-sets Content-Type: application/json
Return Values
`number` code, `string` headersJson, `string` body
Example
lua
local code, h, body = http.post{url="https://api.com/login", json={user="admin", pass="123"}}