Difference between revisions of "LlGetHTTPServerURL"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
|sort=GetHTTPServerURL | |sort=GetHTTPServerURL | ||
|return_type=string | |return_type=string | ||
|return_text= that is a URL identifying the HTTP server. | |return_text= that is a URL identifying the HTTP server if active, empty string otherwise. | ||
|func_desc=Returns the current HTTP server URL for | |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:portofsimulator/uuid</nowiki><br /><nowiki>Ex: http://sim4212.agni:1337/00000000-0000-0000-0000-000000000000</nowiki> | ||
|caveats= | |caveats= | ||
Line 28: | Line 28: | ||
|also_events={{LSL DefineRow||[[http_request]]}} | |also_events={{LSL DefineRow||[[http_request]]}} | ||
|also_functions={{LSL DefineRow||[[llHTTPServer]]|For opening an llHTTPServer.}} | |also_functions={{LSL DefineRow||[[llHTTPServer]]|For opening an llHTTPServer.}} | ||
{{LSL DefineRow||[[llHTTPServerRemove]]|For removing the current HTTP server from a | {{LSL DefineRow||[[llHTTPServerRemove]]|For removing the current HTTP server from a script.}} | ||
{{LSL DefineRow||[[llHTTPResponse]]|For replying to HTTP requests.}} | {{LSL DefineRow||[[llHTTPResponse]]|For replying to HTTP requests.}} | ||
{{LSL DefineRow||[[llEscapeURL]]}} | {{LSL DefineRow||[[llEscapeURL]]}} |
Revision as of 19:01, 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 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: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. | |
• | llHTTPServerRemove | – | For removing the current HTTP server from a script. | |
• | llHTTPResponse | – | For replying to HTTP requests. | |
• | llEscapeURL | |||
• | llUnescapeURL |