Difference between revisions of "LlSetContentType"

From Second Life Wiki
Jump to: navigation, search
(Created page with "<!-- {{LSL Generic/RC|RC Magnum}} --> {{LSL_Function |mode=pre-release |func=LlSetContentType |func_id=? |func_energy=0.0 |func_sleep=0.0 |func_desc=Set the [http…")
Line 37: Line 37:
|history=*Scheduled for [[Beta/Magnum|RC Magnum]] channel, week of August 3, 2011.

Revision as of 06:01, 3 August 2011

Emblem-important-red.png Pre-release Documentation Warning!

This function is not available yet. This documentation was written prior to its final release so it may not match the final implementation.


Function: LlSetContentType( key request_id, integer content_type );

Set the Internet media type of an LSL HTTP server response.

• key request_id a valid http_request() key
• integer content_type Media type to use with any following llHTTPResponse(request_id, ...)
content_type Description
CONTENT_TYPE_TEXT 0x0 text/plain
CONTENT_TYPE_HTML 0x0 text/html


  • This function only has an effect for embedded browsers, on content owned by the person viewing. In all other cases text/plain will be used. Need to verify what counts as "owned" here.
All Issues ~ Search JIRA for related Bugs


See Also


•  http_request


•  llHTTPResponse


•  LSL HTTP server

Deep Notes


  • Scheduled for RC Magnum channel, week of August 3, 2011.

Search JIRA for related Issues


function void LlSetContentType( key request_id, integer content_type );