HTTP BODY MAXLENGTH: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Jenna Huntsman (talk | contribs)
Add note that the value passed via this constant is only applied to the Outgoing HTTP pipeline only.
Jenna Huntsman (talk | contribs)
Add additional notes from main llHTTPRequest page.
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
|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.
|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.


'''*''' Only applies to the [[:Category:LSL HTTP#Understanding_LSL_HTTP_Communications | Outgoing]] HTTP pipeline.
{{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]]===
===[[Mono]]===
*Maximum: 16KiB
*Maximum: 16KiB
Line 14: Line 16:
{{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

Latest revision as of 06: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.

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;