llHTTPRequest

From Second Life Wiki
Revision as of 06:18, 31 January 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Summary

Function: key llHttpRequest( string url, list , string body );
0.0 Forced Delay
10.0 Energy

Sends a HTTP request to the specified url with the body of the request and parameters.
Returns a key that is a handle 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

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

Signature

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