Difference between revisions of "HTTP BODY MAXLENGTH"

From Second Life Wiki
Jump to navigation Jump to search
m
(Add additional notes from main llHTTPRequest page.)
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value=2
|value=2
|desc
|desc=Used with [[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.
 
{{KBtip|When you only need to request a small amount of data from a remote source, consider using the [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range Content-Range header] instead.}}
 
'''* See caveats'''
===[[Mono]]===
*Maximum: 16KiB
===[[LSO]]===
*Maximum: 4KiB
|examples
|examples
|functions=
|functions=
{{LSL DefineRow||[[llHTTPRequest]]|}}
{{LSL DefineRow||[[llHTTPRequest]]|}}
|events
|events
|caveats=*'''*''' Only applies to the [[:Category:LSL HTTP#Understanding_LSL_HTTP_Communications | Outgoing]] HTTP pipeline (HTTP calls invoked by [[llHTTPRequest]],and responses from [[http_response]]).
|cat1=HTTP/Client
|cat1=HTTP/Client
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
|history=*[[Release_Notes/Second_Life_RC_Magnum/12]]
}}
}}

Latest revision as of 05:04, 14 July 2022

Description

Constant: integer HTTP_BODY_MAXLENGTH = 2;

The integer constant HTTP_BODY_MAXLENGTH has the value 2

Used with 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.

KBtip2.png Tip: When you only need to request a small amount of data from a remote source, consider using the Content-Range header instead.

* See caveats

Mono

  • Maximum: 16KiB

LSO

  • Maximum: 4KiB

Caveats


Related Articles

Functions

•  llHTTPRequest

Deep Notes

History

Search JIRA for related Issues

Signature

integer HTTP_BODY_MAXLENGTH = 2;