Difference between revisions of "LlGetHTTPServerURL"

From Second Life Wiki
Jump to navigation Jump to search
Line 8: Line 8:
|return_text= that is a URL identifying the HTTP server if active, empty string otherwise.
|return_text= that is a URL identifying the HTTP server if active, empty string otherwise.
|func_desc=Returns the current HTTP server URL for the script calling the function.
|func_desc=Returns the current HTTP server URL for the script calling the function.
|func_footer=Returned URI: <nowiki>http://sim###.agni:portofsimulator/uuid</nowiki><br /><nowiki>Ex: http://sim4212.agni:1337/00000000-0000-0000-0000-000000000000</nowiki>
|func_footer=Returned URI: <nowiki>http://sim###.agni.lindenlab.com:portofsimulator/uuid</nowiki><br /><nowiki>Ex: http://sim4212.agni.lindenlab.com:1337/00000000-0000-0000-0000-000000000000</nowiki>
|caveats=
|caveats=
|examples=<pre>
|examples=<pre>

Revision as of 15:30, 22 January 2008

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: string llGetHTTPServerURL( );
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: [1]
PJIRA feature requests:
SVC-913
SVC-1086
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

Signature

//function string llGetHTTPServerURL();