Difference between revisions of "LlHTTPResponse"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL_Function|func_id |mode=request |func=llHTTPResponse |func_sleep=0.2 |func_energy=10.0 |func_desc=Sends a reply to an HTTP request. |sort=HTTPResponse |p1_type=string|p1_name=url|p1_d...)
 
Line 29: Line 29:
{{LSL DefineRow||[[llUnescapeURL]]}}
{{LSL DefineRow||[[llUnescapeURL]]}}
|also_footer
|also_footer
|notes=This function is used to reply to HTTP requests received via the [[http_request]] event.
|notes=This function is used to reply to HTTP requests received via the [[http_request]] event.<br /><br />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 request at [http://jira.secondlife.com/browse/SVC-913 SVC-913]<br />Please go vote if this feature is important to you.
|cat1=HTTP
|cat1=HTTP
}}
}}

Revision as of 06:26, 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( string url, 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 );
REQUEST Function ID
0.2 Forced Delay
10.0 Energy

Sends a reply to an HTTP request.

• string url A valid HTTP/HTTPS request URL.
• 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.
All Issues ~ Search JIRA for related Bugs

Examples

default
{
    http_request(string verb, string path_info, list parameters, string body)
    {
        // Loop Back Request Data
        llHTTPResponse(path_info, 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

Functions

•  llHTTPServerRemove For removing the current HTTP server from a prim.
•  llGetHTTPServerURL For retrieving the current HTTP server URL.
•  llEscapeURL
•  llUnescapeURL

Deep Notes

Search JIRA for related Issues

Signature

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