LlHTTPResponse

De DigiWiki.

key url_request;
 
default
{
    state_entry()
    {
        url_request = llRequestURL();
    }
    http_request(key id, string method, string body)
    {
        if (url_request == id)
        {
            url_request = "";
            if (method == URL_REQUEST_GRANTED)
            {
                llOwnerSay("URL: " + body);
            }
            else if (method == URL_REQUEST_DENIED)
            {
                llOwnerSay("Something went wrong, no url. " + body);
            }
        }
        else
        {
            llHTTPResponse(id, 200, body);
        }
    }
}
Outils personnels
  • Cette page a été consultée 467 fois.
donate
Google Ads