First script:
CODE
default
{
touch_start(integer total_number)
{
llHTTPRequest("http://www.google.com", [HTTP_METHOD, "GET"], "");
}
http_response(key id, integer status, list meta, string body)
{
llSay(0, "Requestor response...");
}
}
Second script:
CODE
default
{
http_response(key id, integer status, list meta, string body)
{
llSay(0, "Dupe!");
}
}
If you put those both in a prim and click, it'll show
Object: Requestor response...
Object: Dupe!
I realize the examples have a check to see if the request id matches the one that llHTTPRequest() generated -- but for our purposes that wouldn't have worked as we might make a couple of requests at once and the request contained all the data we needed. I worked around this by storing outstanding request ids in a list and checking that list, but that seems like such a hack when this isn't expected behavior. At least I didn't think it'd be expected. I can't find any reference to it in the lslwiki.net Wiki and a quick search of this forum didn't reveal any reference to it either. Has anyone else experience this behavior, or is this something new? It's the first time we've tried this sort of thing, so we're not sure if it happened in other releases or not.