Talk:LlSetContentType
Too many Questions
we (will) have a pretty new function, but zero information about it... only works for LL's browser / MOAP? (seems like a strange limitation.) only works for the prim owner? (hows that going to work with the internal browser / MOAP, user key/name isn't sent except from llHTTPRequest) I can assume it only works for the script that received the request (since normally other scripts can't respond)
if someone has some better info, it'd be really helpful... if all the above are true, it has zero value, since html from llHTTPRequest can't be displayed as such. if it's just limited to html within SL, it has no use for exporting interface of inworld to the web, but more use for things like huds and distrubuted inworld networks.
-- Void (talk|contribs) 15:29, 5 August 2011 (PDT)
- "for things like huds and distrubuted inworld networks" I think this is exactly the intended use. The exact wording in the release notes was
CONTENT_TYPE_HTML "text/html", only valid for embedded browsers on content owned by the person viewing. Falls back to "text/plain" otherwise.
The implication is that this is to be used with Prim Media; which should be made clear (and isn't) in the caveat or description. -- Strife (talk|contribs) 10:20, 6 August 2011 (PDT)
The intended use is to enable HTML based HUDs. I have created an HTML_HUD_Demo.
For the technical nitty gritty:
- The server will check if the user-agent string contains Second Life and revert to text/plain if it doesn't.
- The server will check the incoming IP of the request against the IP of the object owner and revert to text/plain if they don't match.
For HUDs this will work as expected. Non-HUD content may have weird behavior:
- You may set a custom user-agent string to include Second Life in a non-SL browser to view these urls while logged into the region with the content.
- If you run multiple clients from the same IP and logged into the same region you may be able to see HTML rendered content cross-account.
- Poxy and IP anonymizing services are unlikely to work well with this.
In general these are rare and unreliable enough to sufficiently reduce the concern for hosting webpages under the Linden Lab domain name. This feature is *not* meant to enable serving general purpose web pages from LSL scripts.
- Kelly Linden 14:25, 26 August 2011 (PDT)