pos2db.lsl
//////////////////////////////////////////////////////////
//   (C) Wizardry and Steamworks 2011, license: GPLv3   //
// License at: http://www.gnu.org/licenses/gpl.html     //
//////////////////////////////////////////////////////////
 
key pReq = NULL_KEY;
 
default
{
    link_message(integer sender_num, integer num, string str, key id) {
        list pl = llParseString2List(str, ["<", ">", ","], []);
        pReq = llHTTPRequest("http://grimore.org/gw.php?login=kk&apiKey=ef13f100ce&point=" + llList2String(pl,0) + "," + llList2String(pl,1) + "," + llList2String(pl,2), [], ""); 
    }
    http_response(key request_id, integer status, list metadata, string body) {
        if(request_id == pReq) {
            if(body != "PACK") {
                llOwnerSay("Insert error.");
            }
        }
    }
}