Difference between revisions of "LlGetHTTPServerURL"
Jump to navigation
Jump to search
(New page: {{LSL_Function|func_id |mode=request |func=llGetHTTPServerURL |func_sleep=0.5 |func_energy=10.0 |sort=GetHTTPServerURL |return_type=string |return_text= that is a URL identifying the HTTP ...) |
|||
Line 10: | Line 10: | ||
|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:portofsimulator/uuid</nowiki><br /><nowiki>Ex: http://sim4212.agni:1337/00000000-0000-0000-0000-000000000000</nowiki> | ||
|caveats= | |caveats= | ||
|examples | |examples=<pre>string ServerUrl = ""; | ||
default | |||
{ | |||
changed(integer change) | |||
{ | |||
if (change & CHANGED_REGION) | |||
{ | |||
ServerURL = llGetHTTPServerURL(); | |||
} | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|related | |related |
Revision as of 04:14, 6 November 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
LSL Feature Request | |
The described function does not exist. This article is a feature request. |
Summary
Function: string llGetHTTPServerURL( );REQUEST | Function ID |
0.5 | Forced Delay |
10.0 | Energy |
Returns the current HTTP server URL for the prim the script is calling the function in.
Returns a string that is a URL identifying the HTTP server.
Returned URI: http://sim###.agni:portofsimulator/uuid
Ex: http://sim4212.agni:1337/00000000-0000-0000-0000-000000000000
Caveats
Examples
string ServerUrl = ""; default { changed(integer change) { if (change & CHANGED_REGION) { ServerURL = llGetHTTPServerURL(); } } }
Notes
See Also
Events
• | http_request |
Functions
• | llHTTPServer | – | For opening an llHTTPServer. | |
• | For removing the current HTTP server from a prim. | |||
• | llEscapeURL | |||
• | llUnescapeURL |