Difference between revisions of "LlHTTPResponse"

From Second Life Wiki
Jump to navigation Jump to search
Line 24: Line 24:
|also_header
|also_header
|also_events={{LSL DefineRow||[[http_request]]}}
|also_events={{LSL DefineRow||[[http_request]]}}
{{LSL DefineRow||[[http_server]]}}
|also_functions={{LSL DefineRow||[[llHTTPServerRemove]]|For removing the current HTTP server from a prim.}}
|also_functions={{LSL DefineRow||[[llHTTPServerRemove]]|For removing the current HTTP server from a prim.}}
{{LSL DefineRow||[[llGetHTTPServerURL]]|For retrieving the current HTTP server URL.}}
{{LSL DefineRow||[[llGetHTTPServerURL]]|For retrieving the current HTTP server URL.}}

Revision as of 19:14, 6 November 2007

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

Summary

Function: llHTTPResponse( key request_id, list <span title="HTTP response parameters in the format
[param1, value1, param2, value2, . . . paramN, valueN]" style="border-bottom:1px dotted; cursor:help;">parameters
, string body );
0.2 Forced Delay
10.0 Energy

Sends a reply to an HTTP request.

• key request_id A valid HTTP request key.
• list parameters HTTP response parameters in the format
[param1, value1, param2, value2, . . . paramN, valueN]
• string body Contents of the response.

Caveats

  • This function causes the script to sleep for 0.2 seconds.

Examples

default
{
    http_request(key request_id, string method, string path_info, list parameters, string body)
    {
        // Loop Back Request Data
        llHTTPResponse(request_id, parameters, body);
    }
}

Notes

This function is used to reply to HTTP requests received via the http_request event.

Zero Linden's Office Hours Discussion On Incoming HTTP: [1]
PJIRA feature request at SVC-913
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 prim.
•  llGetHTTPServerURL For retrieving the current HTTP server URL.
•  llEscapeURL
•  llUnescapeURL

Deep Notes

Signature

//function void llHTTPResponse( key request_id, list parameters, string body );