Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key avi = "a9ba2797-81af-429d-9833-51127ad5593c";
- string api = "http://world.secondlife.com/resident/";
- key reqID;
- default
- {
- state_entry()
- {
- reqID = llHTTPRequest(api+(string)avi,[HTTP_METHOD,"POST"],"check");
- }
- http_response(key request, integer status, list metadata, string body)
- {
- if(request == reqID)
- {
- integer title = llSubStringIndex(body,"<title>"); // only a valid uuid contains a <title> meta tag
- // an invalid uuid contains an h3 metatag ie: <h3>Page Not Found</h3>
- if(title != -1)
- {
- llOwnerSay("UUID is an avatar!");
- }
- else
- llOwnerSay("UUID is invalid!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement