Below is the code in my object. It calls data.php which simple returns some text.
I created the object many months ago and it appear that when I rezz and touch it displays the text that was in the first data.php ! even though data.php has changed about 10 times now. If I keep touching then it finally gets to the new data.
Is there FLUSH or something I can do on state_entry to clear this issue up?
default
{
state_entry()
{
}
touch_start(integer total_number)
{
//llSay(0, "Touched."

;
key tbownerKey = llGetOwner();
string tbowner = llKey2Name(tbownerKey);
string tbname = llKey2Name(tbownerKey);
string tbregion = llGetRegionName();
vector tblocation = llGetPos(); // and this.
vector tbglobalcoord = llGetRegionCorner() + llGetPos(); // and this.
integer tbtimestamp = llGetUnixTime();
string tbcoordx = (string)tblocation.x;
string tbcoordy = (string)tblocation.y;
string tbcoordz = (string)tblocation.z;
string tbtoucherget = (string)llDetectedKey(0);
string tbtoucher = llKey2Name(tbtoucherget);
gToucher = (string)llDetectedKey(0);
gMyTRequest = llHTTPRequest("http://www.mywebsite.com/data.php", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "tbowner="+(string)tbowner+"&tbname="+(string)tbname + "&tbregion="+(string)tbregion + "&tblocation=" + (string)tblocation + "&tbownerKey=" + (string)tbownerKey+
"&tbcoordx= "+(string)tbcoordx + "&tbcoordy=" + (string)tbcoordy + "&tbcoordz=" + (string)tbcoordz + "&tbtoucher=" + (string)tbtoucher) ;
[HTTP_METHOD,"POST"] ,""

;
}
http_response(key id,integer status, list meta, string body)
{
if(gMyTRequest==id)
{
integer i;
list lbody=llParseString2List(body,["\n"],[]);
integer count=llGetListLength(lbody);
//This turns newline characters char(10) into new lines in chat
//These are Unix/LSL style end of lines, use \r\n in place of \n for
// Windows style end of line from web server.
for(i=0;i<count;i++)
{
// llOwnerSay(llList2String(lbody,i));
llInstantMessage(gToucher,llList2String(lbody,i));
llInstantMessage(llGetOwner(),llList2String(lbody,i));
//llShout(0,llList2String(lbody,i));
// llSay(0,llList2String(lbody,i));
}
}
}
}