AcediaDocumentation

game:HttpPost

Posts data through the DataModel HTTP method and returns the response body.

Non-2xx or transport failures are reported to output and return an empty string. Use request for structured response information. The Async alias uses the same yielding path.

game:HttpPost(url: string, body: string?, contentType: string?): string

Parameters

ParameterTypeDescription
urlstringhttp:// or https:// URL.
bodystring?Request body; defaults to empty.
contentTypestring?Optional Content-Type header.

Aliases: game:HttpPostAsync.

On this page