Difference between revisions of "Http request"

From Second Life Wiki
Jump to navigation Jump to search
(the main LSL categories are not for requests)
Line 2: Line 2:
|mode=request
|mode=request
|event_delay|event=http_request
|event_delay|event=http_request
|p1_type=string|p1_name=verb|p1_desc
|p1_type=string|p1_name=method|p1_desc=GET,POST,PUT
|p2_type=string|p2_name=path_info|p2_desc=Requesting URL.
|p2_type=string|p2_name=path_info|p2_desc=
|p3_type=list|p3_name=params|p3_desc=HTTP request parameters in the format<br />[param1, value1, param2, value2, . . . paramN, valueN]
|p3_type=list|p3_name=params|p3_desc=HTTP request parameters in the format<br />[param1, value1, param2, value2, . . . paramN, valueN]
|p4_type=string|p4_name=body|p4_desc=Contents of the request.
|p4_type=string|p4_name=body|p4_desc=Contents of the request.

Revision as of 18:01, 6 November 2007

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

Description

Event: http_request( 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.

• 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

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

Functions

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

Deep Notes

Signature