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?): stringParameters
| Parameter | Type | Description |
|---|---|---|
url | string | http:// or https:// URL. |
body | string? | Request body; defaults to empty. |
contentType | string? | Optional Content-Type header. |
Aliases: game:HttpPostAsync.
