Http request

From Second Life Wiki
Revision as of 20:06, 6 November 2007 by SiRiS Asturias (talk | contribs)
Jump to navigation Jump to search
Emblem-important-yellow.png LSL Feature Request
The described event does not exist. This article is a feature request.

Description

Event: http_request( key request_id, string method, string path_info, list <span title="HTTP request parameters in the format
[param1, value1, param2, value2, . . . paramN, valueN]" style="border-bottom:1px dotted; cursor:help;">params
, string body ){ ; }

Triggered when task receives an HTTP request.

• key request_id HTTP request id for response use.
• string method GET,POST,PUT
• string path_info
• list params HTTP request parameters in the format
[param1, value1, param2, value2, . . . paramN, valueN]
• string body Contents of the request.

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

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_server

Functions

•  llHTTPServer For opening an llHTTPServer.
•  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

Signature