Difference between revisions of "LlHTTPRequest"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 2: Line 2:
|func=llHttpRequest
|func=llHttpRequest
|func_id=230
|func_id=230
|func_sleep=0.05
|func_energy=10.0
|func_sleep=0.0
|func_sleep=0.0
|func_desc=Sends a HTTP request to the specified url with the body of the request and parameters.  
|func_desc=Sends a HTTP request to the specified url with the body of the request and parameters.  
Line 8: Line 8:
|func_footnot=
|func_footnot=
|return_type=key
|return_type=key
|return_text=Unique key identifying the http request made.
|return_text= that is a handle identifying the http request made.
|p1_type=string|p1_name=url|p1_desc=A valid Http/Https Url.
|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]
|p2_type=list|p2_name|p2_desc=Http request parameters in the format [ parameter1, value1, parameter2, value2, . . . parametern, valuen]

Revision as of 07:18, 31 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 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.

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