URL REQUEST DENIED

From Second Life Wiki
Revision as of 10:22, 8 October 2012 by Kireji Haiku (talk | contribs) (added example script)
Jump to navigation Jump to search

Description

Constant: string URL_REQUEST_DENIED = "URL_REQUEST_DENIED";

The string constant URL_REQUEST_DENIED has the value "URL_REQUEST_DENIED"

Caveats


Related Articles

Constants

•  URL_REQUEST_GRANTED

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_DENIED = "URL_REQUEST_DENIED";