I have seen that there is a llhttprequest but i don't understand how it work.
My goal is simply to make my bookmarks in a SQL database for faster search engine that the one provided ingame, for myself use.
string escape(string msg)
{
return llDumpList2String(llParseString2List(msg, [" "], []), "%20"
;}
default
{
state_entry()
{
llSetText("SL GEO TAGGING", <1.0, 1.0, 1.0>, 1.0);
llListen(121, "", llGetOwner(), ""
;llOwnerSay("Ready"
;}
attach(key id)
{
if (id == llGetOwner()) {
llOwnerSay("Toucher moi !:"
;}
}
touch_start(integer total_number)
{
vector pos = llGetPos();
key av = llDetectedKey(0);
string avName = llDetectedName(0);
string url = "http://urlofmyphpfile/write.php?region="+ escape(llGetRegionName())+"&pox="+(string)llRound(pos.x)+"&poy="+(string)llRound(pos.y)+"&poz="+(string)llRound(pos.z)+"&name="+avName;
llLoadURL(av, "Enregistrer", url);
}
listen(integer c, string name, key id, string msg)
{
list bits = llParseString2List(msg, [","], []);
bits = llListReplaceList(bits, [escape(llList2String(bits, 0))], 0, 0);
}
changed(integer change)
{
if (change & CHANGED_OWNER) {
}
}
}