User:Vegas Silverweb/llHTTPRequest Pro Tip(s)

From Second Life Wiki
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.

Pro Tip!

llHTTPRequest can return null key. Means you're llHTTPRequest-ing too fast, generally. To keep it reliable, you need to do something like this:


    key req;
        while(NULL_KEY == req=llHTTPRequest("",[],"")) {
           llOwnerSay("uh oh throttle");


The sleep should probably be longer, perhaps 20 seconds. Even better, defer the HTTP request for 10 or 20 seconds with a timer so your event queue can be serviced while the llHTTPRequest throttle is in effect.