Difference between revisions of "LlHTTPRequest"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=320
|func=llHttpRequest
|func_id=230
|func_sleep=0.05
|func_sleep=0.05
|func_energy=10.0
|func_sleep=0.0
|func=llHttpRequest
|func_desc=Sends a HTTP request to the specified url with the body of the request and parameters.
|sort=HttpRequest
|func_footnot=
|return_type=key
|return_type=key
|return_text=unique key identifying the http request made.
|return_text=Unique key identifying the http request made.
|func_footnote=Sends a HTTP request to the specified url with the body of the request and parameters.
|p1_type=string|p1_name=url|p1_desc=A valid Http/Https Url.
|p2_type=list|p2_name|p2_desc=Http request parameters in the format [ parameter1, value1, parameter2, value2, ... parametern, valuen]
|p3_type=string|p3_name=body|p3_desc=Contents of the request.
|constants
|spec
|spec
|caveats=Cannot be used to load textures or images from the internet, for more information see [[Web Textures]].
|caveats=Cannot be used to load textures or images from the internet, for more information see [[Web Textures]].
|examples=<lsl>default
|examples=<pre>default
{
{
     state_entry()
     state_entry()
Line 16: Line 20:
         llHttpRequest("url", [], "");
         llHttpRequest("url", [], "");
     }
     }
}</lsl>
}</
</pre>
|helpers
|helpers
|also_functions=*{{LSLG|llResetTime}}
|also_header
*{{LSLG|llGetTime}}
|also_events=*http_response
|also
|also_functions=*{{LSLG|llEscapeURL}}
|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
*{{LSLG|llUnescapeURL}}
|also_articles
|also_footer
|notes
|mode
|deprecated
|sort
|permission
|negative_index
}}

Revision as of 21:28, 30 January 2007

Summary

Function: key llHttpRequest( string url, list , string body );

Sends a HTTP request to the specified url with the body of the request and parameters.
Returns a key Unique key identifying the http request made.

• string url A valid Http/Https Url.
• list Http request parameters in the format [ parameter1, value1, parameter2, value2, ... parametern, valuen]
• string body Contents of the request.

Caveats

Cannot be used to load textures or images from the internet, for more information see Web Textures.

Examples

default
{
    state_entry()
    {
        llHttpRequest("url", [], "");
    }
}</

See Also

Events

  • http_response

Functions

Deep Notes

Signature

function key llHttpRequest( string url, list , string body );