Skip to content
lsl.devlsl.devLSL Dev

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

HTTPContentType

Other HTTPContentType values (8)

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

  • 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.
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.

From the Second Life Wiki

Community documentation adapted from CONTENT TYPE HTML, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.