Skip to content

http.post

JoeStrout edited this page Nov 16, 2026 · 5 revisions

Send an HTTP POST request; returns the response body as a string (or an error message string on failure). data may be a string, or a map to send as form data; headers is an optional map of header names to values.

Parameters

Parameter Default Value Note
url ""
data
headers

Return value

Condition Return Value
(always) string

Notes

Example

import "http"
response = http.post("https://httpbin.org/post", "hello=world", {})
print response

Clone this wiki locally