Difference between revisions of "Template:LSL Constants HTTP"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 2: Line 2:
! '''Flag''' !! '''Value''' !! '''Default''' !! '''Description'''
! '''Flag''' !! '''Value''' !! '''Default''' !! '''Description'''
{{!}}-
{{!}}-
{{!}} <tt>{{LSLG|HTTP_METHOD}}</tt>
{{!}} {{LSLG|HTTP_METHOD}}
{{!}} 0
{{!}} 0
{{!}} "GET"
{{!}} "GET"
{{!}} 'GET', 'POST', 'PUT' and 'DELETE'
{{!}} 'GET', 'POST', 'PUT' and 'DELETE'
{{!}}-
{{!}}-
{{!}} <tt>{{LSLG|HTTP_MIMETYPE}}</tt>
{{!}} {{LSLG|HTTP_MIMETYPE}}
{{!}} 1
{{!}} 1
{{!}} "text/plain;charset=utf-8"
{{!}} "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 &lt;name,value&gt; pairs in the form var=value&amp;var2=value2 and have them automatically parsed by web frameworks
{{!}} 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 &lt;name,value&gt; pairs in the form var=value&amp;var2=value2 and have them automatically parsed by web frameworks
{{!}}-
{{!}}-
{{!}} <tt>{{LSLG|HTTP_BODY_MAXLENGTH}}</tt>
{{!}} {{LSLG|HTTP_BODY_MAXLENGTH}}
{{!}} 2
{{!}} 2
{{!}} 2048
{{!}} 2048
{{!}} Setting HTTP_BODY_MAXLENGTH is not yet supported
{{!}} Setting HTTP_BODY_MAXLENGTH is not yet supported
{{!}}-
{{!}}-
{{!}} <tt>{{LSLG|HTTP_VERIFY_CERT}}</tt>
{{!}} {{LSLG|HTTP_VERIFY_CERT}}
{{!}}  
{{!}} 3
{{!}} TRUE
{{!}} 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.
{{!}} 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.
{{!}}-
{{!}} <tt>{{LSLG|HTTP_BODY_TRUNCATED}}</tt>
{{!}}
{{!}}
{{!}} Used with http_response to indicate truncation point in bytes
{{!}}}
{{!}}}

Revision as of 20:45, 11 February 2007

Flag Value Default Description
HTTP_METHOD 0 "GET" 'GET', 'POST', 'PUT' and 'DELETE'
HTTP_MIMETYPE 1 "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 2048 Setting HTTP_BODY_MAXLENGTH is not yet supported
HTTP_VERIFY_CERT 3 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.