llSetContentType

From Second Life Wiki
Revision as of 06:00, 3 August 2011 by Cerise Sorbet (talk | contribs) (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…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.

Summary

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

Caveats

  • 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

Examples

See Also

Events

•  http_request

Functions

•  llHTTPResponse

Articles

•  LSL HTTP server

Deep Notes

Search JIRA for related Issues

Signature

function void LlSetContentType( key request_id, integer content_type );