CONTENT_TYPE_HTML
constant
Constant
integer CONTENT_TYPE_HTML = 1;Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/html'. Only valid for embedded browsers on content owned by the viewer; falls back to 'text/plain' otherwise.
Constant groups
Other HTTPContentType values (8)
Sets the Internet media type "Content-Type" header of any subsequent LSL HTTP server response via llHTTPResponse to "text/html".
Caveats
Section titled “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.
See also
Section titled “See also”Constants
Section titled “Constants”- 1= — 2=
CONTENT_TYPE_TEXT— 3= - 1= — 2=
CONTENT_TYPE_XML— 3= - 1= — 2=
CONTENT_TYPE_XHTML— 3= - 1= — 2=
CONTENT_TYPE_ATOM— 3= - 1= — 2=
CONTENT_TYPE_JSON— 3= - 1= — 2=
CONTENT_TYPE_LLSD— 3= - 1= — 2=
CONTENT_TYPE_FORM— 3= - 1= — 2=
CONTENT_TYPE_RSS— 3=
Functions
Section titled “Functions”Events
Section titled “Events”Articles
Section titled “Articles”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.