Difference between revisions of "LlHTTPServer"

From Second Life Wiki
Jump to navigation Jump to search
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL_Function|func_id
{{LSL_Function|func_id
|mode=request
|mode=request
|func_sleep=0.1
 
|func=llHTTPServer
|func_sleep=1.0
|func_energy=10.0
|func_energy=10.0
|func=llHTTPServer
|return_type=string
|func_desc=Opens an HTTP server to the prim the script is callng the function in, returning the connection URL as a string.
|sort=HTTPServer
|sort=HTTPServer
|return_text|spec|caveats|examples|helpers|related|also
|func_desc=Triggers the http_server event with event_type HTTP_SERVER_ACTIVATED in the script calling the function.
|notes=PJIRA feature request at [http://jira.secondlife.com/browse/SVC-913 Allow LSL scripts to act as HTTP servers in order to replace XMLRPC with something scalable]. Please go vote if this feature is important to you.
|spec
|caveats=*Attachments receive a new URL on every region change. See [[llGetHTTPServerURL]]
|examples
|helpers
|related
|also_header
|also_events={{LSL DefineRow||[[http_request]]}}
{{LSL DefineRow||[[http_server]]}}
|also_functions={{LSL DefineRow||[[llHTTPServerRemove]]|For removing the current HTTP server from a script.}}
{{LSL DefineRow||[[llGetHTTPServerURL]]|For retrieving the current HTTP server URL.}}
{{LSL DefineRow||[[llHTTPResponse]]|For replying to HTTP requests.}}
{{LSL DefineRow||[[llEscapeURL]]}}
{{LSL DefineRow||[[llUnescapeURL]]}}
|also_footer
|notes=Zero Linden's Office Hours Discussion On Incoming HTTP: [https://wiki.secondlife.com/wiki/User:Zero_Linden/Office_Hours/Discussion#Incoming_HTTP]<br />PJIRA feature requests:<br />[http://jira.secondlife.com/browse/SVC-913 SVC-913]<br />[http://jira.secondlife.com/browse/SVC-1086 SVC-1086]<br />Please go vote if this feature is important to you.
|cat1
}}
}}

Latest revision as of 12:18, 21 January 2008

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

Summary

Function: llHTTPServer( );
REQUEST Function ID
1.0 Forced Delay
10.0 Energy

Triggers the http_server event with event_type HTTP_SERVER_ACTIVATED in the script calling the function.

Caveats

  • This function causes the script to sleep for 1.0 seconds.
  • Attachments receive a new URL on every region change. See llGetHTTPServerURL
All Issues ~ Search JIRA for related Bugs

Examples

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
•  http_server

Functions

•  llHTTPServerRemove For removing the current HTTP server from a script.
•  llGetHTTPServerURL For retrieving the current HTTP server URL.
•  llHTTPResponse For replying to HTTP requests.
•  llEscapeURL
•  llUnescapeURL

Deep Notes

Search JIRA for related Issues

Signature

//function void llHTTPServer();