Difference between revisions of "HTTP BODY MAXLENGTH"
Jump to navigation
Jump to search
(Move pipeline note to caveats section.) |
(Add additional notes from main llHTTPRequest page.) |
||
Line 4: | Line 4: | ||
|value=2 | |value=2 | ||
|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. | ||
{{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''' | '''* See caveats''' | ||
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. | |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 05:04, 14 July 2022
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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
- * Only applies to the Outgoing HTTP pipeline (HTTP calls invoked by llHTTPRequest,and responses from http_response).
Related Articles
Functions
• | llHTTPRequest |