llGetHTTPServerURL

From Second Life Wiki
Revision as of 19:37, 3 May 2009 by Strife Onizuka (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

This was implemented as llRequestURL and llRequestSecureURL.

Summary

Function: string llGetHTTPServerURL( );
REQUEST Function ID
0.0 Forced Delay
10.0 Energy

Returns the current HTTP server URL for the script calling the function.
Returns a string that is a URL identifying the HTTP server if active, empty string otherwise.

Returned URI: http://sim###.agni.lindenlab.com:portofsimulator/uuid
Ex: http://sim4212.agni.lindenlab.com:1337/00000000-0000-0000-0000-000000000000

Examples

default
{
    touch_start(integer t) // Touch Indicator
    {
        string ServerURL = llGetHTTPServerURL();
        if (ServerURL != "")
        {
            llOwnerSay("HTTP Server URL:" + ServerURL);
        }
        else
        {
            llOwnerSay("HTTP Server Is Not Active!");
        }
    }
}

Notes

Zero Linden's Office Hours Discussion On Incoming HTTP

PJIRA feature requests:

Please go vote if this feature is important to you.

See Also

Events

•  http_request

Functions

•  llHTTPServer For opening an llHTTPServer.
•  llHTTPServerRemove For removing the current HTTP server from the script.
•  llHTTPResponse For replying to HTTP requests.
•  llEscapeURL
•  llUnescapeURL

Deep Notes

Search JIRA for related Issues

Signature

//function string llGetHTTPServerURL();