llSetContentType

From Second Life Wiki
Revision as of 06:01, 3 August 2011 by Cerise Sorbet (talk | contribs)
Jump to navigation Jump to search
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.
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

History

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

Search JIRA for related Issues

Signature

function void LlSetContentType( key request_id, integer content_type );