llHTTPRequest

From Second Life Wiki
Revision as of 22:33, 30 January 2007 by Bleevo Plessis (talk | contribs)
Jump to navigation Jump to search

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 );