LSL feature request. The described event does not exist. This article is a feature request.
Triggered when an HTTP server changes states.
http_server( integer event_type, string data )
| Event Type | Description | |
|---|---|---|
| HTTP_SERVER_ACTIVATED | 1 | HTTP Server has been opened. |
| HTTP_SERVER_DEACTIVATED | 2 | HTTP Server has been closed. |
<lsl>integer Activate = 1; default {
touch_start(integer t) // Touch Start/Stop HTTP Server
{
if (Activate)
{
llHTTPServer(); // Open An HTTP Server.
}
else
{
llHTTPServerRemove(); // Closes Current HTTP Server.
}
Activate != Activate;
}
http_server(integer event_type, string data)
{
if (event_type == HTTP_SERVER_ACTIVATED)
{
//Data Is The HTTP Servers URL.
llOwnerSay("HTTP Server Activated At: " + data);
}
else if (event_type == HTTP_SERVER_DEACTIVATED)
{
//Data Is Empty String.
llOwnerSay("HTTP Server Has Been Deactivated!");
}
}
} </lsl>
Zero Linden's Office Hours Discussion On Incoming HTTP: https://wiki.secondlife.com/wiki/User:Zero_Linden/Office_Hours/Discussion#Incoming_HTTP
PJIRA feature requests:
SVC-913
SVC-1086
Please go vote if this feature is important to you.