Skip to main content

HTTP Helpers

http_post(url, body, headers) → boolean​

Send an HTTP POST request asynchronously (fire-and-forget, 5s timeout). Non-200 responses and errors are logged only.

  • url (string) - Target URL (required, cannot be empty)
  • body (string) - Request body as binary string
  • headers (table, optional) - HTTP headers as {[string] = string} pairs

Returns: true if queued, false if invalid/empty URL. Default Content-Type: application/octet-stream.