CONTENT TYPE HTML
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CONTENT_TYPE_HTML = 1;The integer constant CONTENT_TYPE_HTML has the value 1
Sets the 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:
- the web browser is the Second Life client
- the user (logged into the SL client viewing the page) is the owner of the object.
- 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.
Related Articles
Constants
• | CONTENT_TYPE_TEXT | |||
• | CONTENT_TYPE_XML | |||
• | CONTENT_TYPE_XHTML | |||
• | CONTENT_TYPE_ATOM | |||
• | CONTENT_TYPE_JSON | |||
• | CONTENT_TYPE_LLSD | |||
• | CONTENT_TYPE_FORM | |||
• | CONTENT_TYPE_RSS |
Functions
• | llSetContentType | |||
• | llHTTPResponse |
Events
• | http_request | |||
• | http_response |
Articles
• | LSL HTTP server | |||
• | HTML HUD Demo |