· 6 years ago · Feb 18, 2019, 04:22 AM
1default
2{
3 on_rez(integer num)
4 {
5 ParcelName = llList2String(llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME]), 0);
6 vector position = llGetPos();
7 llOwnerSay((string)position);
8 string description = llGetObjectDesc();
9 //string description = llList2String(llGetLinkPrimitiveParams(LINK_ROOT, [ PRIM_DESC ]), 0);
10
11 string body = "";
12//define a string to contain the complete url of the request.
13//note that the complete url is more than just the page's address.
14//you need additional information for the php, explained later.
15
16string URL = readingPage + "?" + "secretkey=" + (string)secretpassword + "&buoy_uuid=" + (string)llGetKey() + "®ion_name=" + (string)llGetRegionName() + "&buoy_position=" + (string)((integer)position.x)+"/"+(string)((integer)position.y)+"/"+(string)((integer)position.z) + "&owner_uuid=" + (string)llGetOwner() + "&parcel_name=" + (string)ParcelName + "&storedescription=" + description + "&buoy_money=" +"0";
17//define a list to contain the parameters of the http request.
18list parameters = [HTTP_METHOD, "GET"];