# HTTP_BODY_MAXLENGTH

*LSL constant*

```lsl
integer HTTP_BODY_MAXLENGTH = 2;
```

Constant groups: [HTTPRequestParam](/constants/groups/HTTPRequestParam/)

Used with [llHTTPRequest](/functions/llHTTPRequest/) to set the maximum size the script will accept**\*** for an HTTP body. The largest value this can be set to depends upon the VM that is being used.

:::note
When you only need to request a small amount of data from a remote source, consider using the [Content-Range header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) instead.
:::

**\* See caveats**

### [Lua/LSL on Lua](https://wiki.secondlife.com/wiki/SLua_Alpha)

- Maximum: 32KiB (32768)

### [LSL on Mono](https://wiki.secondlife.com/wiki/Mono)

- Maximum: 16KiB (16384)

### [LSO/LSL Legacy](https://wiki.secondlife.com/wiki/LSO)

- Maximum: 4KiB (4096) Sets the maximum (UTF-8 encoded) byte length of the HTTP response body.

## Caveats

- **\*** Only applies to the [Outgoing](https://wiki.secondlife.com/wiki/Category:LSL_HTTP) HTTP pipeline (HTTP calls invoked by [llHTTPRequest](/functions/llHTTPRequest/),and responses from [http_response](/events/http_response/)).

## History

- [Release_Notes/Second_Life_RC_Magnum/12](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_Magnum/12)

## See also

### Functions

- [llHTTPRequest](/functions/llHTTPRequest/)

---

*Source: [HTTP BODY MAXLENGTH](https://wiki.secondlife.com/wiki/HTTP_BODY_MAXLENGTH) on the Second Life Wiki. Content from the Second Life Wiki article HTTP BODY MAXLENGTH (revision 1219027, 2026-09-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/HTTP_BODY_MAXLENGTH/
