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:
 
|also_footer
 
|also_footer
 
|notes
 
|notes
 +
|history=*Scheduled for [[Beta/Magnum|RC Magnum]] channel, week of August 3, 2011.
 
|mode
 
|mode
 
|deprecated
 
|deprecated

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.

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 );