Difference between revisions of "CONTENT TYPE HTML"

From Second Life Wiki
Jump to navigation Jump to search
m (not hex)
m (added link to HTML_HUD_Demo)
 
Line 27: Line 27:
{{LSL DefineRow||[[http_request]]|}}
{{LSL DefineRow||[[http_request]]|}}
{{LSL DefineRow||[[http_response]]|}}
{{LSL DefineRow||[[http_response]]|}}
|articles={{LSL DefineRow||[[LSL HTTP server]]}}
|articles=
{{LSL DefineRow||[[LSL HTTP server]]}}
{{LSL DefineRow||[[HTML HUD Demo]]}}
|cat1=Chat
|cat1=Chat
|cat2
|cat2

Latest revision as of 06:03, 8 January 2014

Description

Constant: integer CONTENT_TYPE_HTML = 1;

The integer constant CONTENT_TYPE_HTML has the value 1

Sets the "Wikipedia logo"Internet media type "Content-Type" header of any subsequent LSL HTTP server response via llHTTPResponse to "text/html".

Caveats

  • When using CONTENT_TYPE_HTML, this setting will be ignored unless all of these conditions are met:
    1. the web browser is the Second Life client
    2. the user (logged into the SL client viewing the page) is the owner of the object.
    3. the user (logged into the SL client viewing the page) is connected to the region the object is located in
    Obviously this is not compatible with group owned objects. One way around this limitation would be to temporarily attach a repeated.
All Issues ~ Search JIRA for related Bugs

Related Articles

Deep Notes

Search JIRA for related Issues

Signature

integer CONTENT_TYPE_HTML = 1;