URL REQUEST GRANTED

From Second Life Wiki
Revision as of 11:22, 8 October 2012 by Kireji Haiku (talk | contribs) (added example script)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Constant: string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED";

The string constant URL_REQUEST_GRANTED has the value "URL_REQUEST_GRANTED"

Related Articles

Constants

•  URL_REQUEST_DENIED

Events

•  http_request

Examples

KBcaution.png Important: Never ever forget to release a URL again which you have requested! URLs are region resources just like prims. If you take them all you can get into big trouble with the sim owner and/or estate managers.

This script requests a new URL after region restart: <lsl> string url; key urlRequestId; key selfCheckRequestId;

request_url() {

   llReleaseURL(url);
   url = "";
   urlRequestId = llRequestURL();

}

throw_exception(string inputString) {

   key owner = llGetOwner();
   llInstantMessage(owner, inputString);
   // yeah, bad way to handle exceptions by restarting.
   // However this is just a demo script...
   llResetScript();

}

default {

   on_rez(integer start_param)
   {
       llResetScript();
   }
   changed(integer change)
   {
       if (change & (CHANGED_OWNER

Deep Notes

History

Search JIRA for related Issues

Signature

string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED";