Skip to content

httpPostAsync

Starts an asynchronous HTTP POST request.

Syntax

lua
Ham.httpPostAsync(url, payload, headers, insecure)

Parameters

NameTypeDescription
urlstringURL to request
payloadstringRequest body
headerstable|nilOptional headers
insecureboolean|nilSkip SSL verification

Returns

  • integer - Request ID

Example

lua
local requestId = Ham.httpPostAsync("https://api.example.com/submit", '{"data": 123}')

See Also

Released under the ISC License.