Difference between revisions of "LlHTTPRequest"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 15: Line 15:
|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=<pre>default
|examples=<pre>key http_request_id;
 
default
{
{
     state_entry()
     state_entry()
     {
     {
         llHttpRequest("url", [], "");
         http_request_id = llHttpRequest("url", [], "");
    }
 
    http_response(key request_id, integer status, list metadata, string body)
    {
        if (request_id = http_request_id)
        {
            llSetText(body, <0,0,1>, 1);
        }
     }
     }
}
}

Revision as of 22:33, 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.

All Issues ~ Search JIRA for related Bugs

Examples

key http_request_id;

default
{
    state_entry()
    {
        http_request_id = llHttpRequest("url", [], "");
    }

    http_response(key request_id, integer status, list metadata, string body)
    {
        if (request_id = http_request_id)
        {
            llSetText(body, <0,0,1>, 1);
        }
    }
}

See Also

Deep Notes

Search JIRA for related Issues

Signature

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