Difference between revisions of "LlHTTPResponse"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=348|func_sleep=0.0|func_energy=10.0
|func_id=348|func_sleep=0.0|func_energy=10.0|mode
|func=llHTTPResponse
|func=llHTTPResponse
|p1_type=key|p1_name=request_id|p1_desc=A valid HTTP request key.
|p1_type=key|p1_name=request_id|p1_desc=A valid HTTP request key.
|p2_type=integer|p2_name=status|p2_desc=HTTP Status (200, 400, 404, etc)
|p2_type=integer|p2_name=status|p2_desc=HTTP Status (200, 400, 404, etc)
|p3_type=string|p3_name=body|p3_desc=Contents of the response.
|p3_type=string|p3_name=body|p3_desc=Contents of the response.
|func_footnote=The response need not be made inside the [[http_request]] event but if it does not happen in a timely fashion the request will time out.
|func_footnote=The response need not be made inside the [[http_request]] event but if it does not happen in a timely fashion the request will time out (within 25 seconds).
|func_desc=Responds to '''request_id''' with '''status''' and '''body'''.
|func_desc=Responds to '''request_id''' with '''status''' and '''body'''.
|return_text
|return_text
Line 13: Line 13:
|examples=
|examples=
|helpers
|helpers
|mode=preview
|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetFreeURLs]]}}
{{LSL DefineRow||[[llGetFreeURLs]]}}

Revision as of 09:26, 13 July 2009

Summary

Function: llHTTPResponse( key request_id, integer status, string body );

Responds to request_id with status and body.

• key request_id A valid HTTP request key.
• integer status HTTP Status (200, 400, 404, etc)
• string body Contents of the response.

The response need not be made inside the http_request event but if it does not happen in a timely fashion the request will time out (within 25 seconds).

Caveats

This call must be made by the script containing the http_request event where the id was received.

All Issues ~ Search JIRA for related Bugs

Examples

See Also

Events

•  http_request

Functions

•  llGetFreeURLs
•  llRequestURL
•  llRequestSecureURL
•  llReleaseURL
•  llGetHTTPHeader

Articles

•  LSL http server

Deep Notes

History

Search JIRA for related Issues

Signature

function void llHTTPResponse( key request_id, integer status, string body );