Difference between revisions of "Template:LSL Constants HTTP"

From Second Life Wiki
Jump to navigation Jump to search
m
m (KiB notation preferred over ambiguous KB, made values hoverable.)
Line 22: Line 22:
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} [[integer]]
{{!}} [[integer]]
{{!}} 2048
{{!}} {{BytesHover|2048}}
{{!}} Sets the maximum (UTF-8 encoded) byte length of the HTTP body. The maximum that can be set depends upon which VM is used.
{{!}} Sets the maximum (UTF-8 encoded) byte length of the HTTP body. The maximum that can be set depends upon which VM is used.
* '''[[Mono]] Max:''' 16384 (16 KB)
* '''[[Mono]] Max:''' {{BytesHover|16384}}
* '''[[LSO]] Max:''' 4096 (4 KB)
* '''[[LSO]] Max:''' {{BytesHover|4096}}
{{!}}-
{{!}}-
{{!}} {{LSL Const|HTTP_VERIFY_CERT|integer|3}}
{{!}} {{LSL Const|HTTP_VERIFY_CERT|integer|3}}

Revision as of 11:27, 4 May 2012

Flag Value Type Default Description
HTTP_METHOD 0 string "GET" 'GET', 'POST', 'PUT' and 'DELETE'
HTTP_MIMETYPE 1 string "text/plain;charset=utf-8" text/* MIME types should specify a charset. To emulate HTML forms use application/x-www-form-urlencoded. This allows you to set the body to a properly escaped (llEscapeURL) sequence of <name,value> pairs in the form var=value&var2=value2 and have them automatically parsed by web frameworks
HTTP_BODY_MAXLENGTH 2 integer 2048 Sets the maximum (UTF-8 encoded) byte length of the HTTP body. The maximum that can be set depends upon which VM is used.
HTTP_VERIFY_CERT 3 integer boolean TRUE If TRUE, the server SSL certificate must be verifiable using one of the standard certificate authorities when making HTTPS requests. If FALSE, any server SSL certificate will be accepted.
HTTP_VERBOSE_THROTTLE 4 integer TRUE If TRUE, shout error messages to DEBUG_CHANNEL if the outgoing request rate exceeds the server limit. If FALSE, the error messages are suppressed (llHTTPRequest will still return NULL_KEY).