---
title: "HttpPostAsync"
description: "Calls the same implementation as HttpPost."
---

```lua
HttpPostAsync(url: string, body: string? = ""): string
```

---

## Aliases

None.

---

## Arguments

<ParamField body="url" type="string" required>
  The endpoint URL, including its protocol.
</ParamField>

<ParamField body="body" type="string" default={"\"\""}>
  The request body.
</ParamField>

---

## Returns

<ResponseField name="body" type="string">
  The response body, or a Luau comment string describing the failure.
</ResponseField>

Yields and resumes with a result; does not return a promise, task handle, or callback registration. A local server must be running.

**Related types:** [HTTP types & behavior](/reference/http/types).

---

## Example

```lua
print(HttpPostAsync("http://127.0.0.1:8080/echo", "message=hello"))
```
