· 4 years ago · May 18, 2021, 06:52 AM
1key avi = "a9ba2797-81af-429d-9833-51127ad5593c";
2string api = " http://world.secondlife.com/resident/";
3key reqID;
4
5default
6{
7 state_entry()
8 {
9 reqID = llHTTPRequest(api+(string)avi,[HTTP_METHOD,"POST"],"check");
10 }
11
12
13
14 http_response(key request, integer status, list metadata, string body)
15 {
16
17 if(request == reqID)
18 {
19
20 integer title = llSubStringIndex(body,"<title>"); // only a valid uuid contains a <title> meta tag
21 // an invalid uuid contains an h3 metatag ie: <h3>Page Not Found</h3>
22
23 if(title != -1)
24 {
25
26 llOwnerSay("UUID is an avatar!");
27
28 }
29
30 else
31 llOwnerSay("UUID is invalid!");
32
33 }
34 }
35}