My home sim is bowfin. If some people could check out this script I'd really appreciate it - how do I log a defect with linden labs? I thought about grabbing in world help and trying to get them to look at it, but thought there might be a better way to do it...
You should be able to rez this thing, touch it, and watch it die when it gets a response back. This script doesn't work, not even once, in bowfin. The two or three other sims I've ran it in had no problems
Does anyone have any thoughts? AFAIK this behaviour doesn't fit the HTTP throttle, unless there's someone in my sim that keeps the whole region throttled continuously... I think its a bug but I don't really know what to do next...
CODE
string serveraddress= "http://paintupthesky.com/CoinHunt/CoinHunt.aspx";
key httpQuery = NULL_KEY;
string httpResponse;
MerlinHTTPSoapQuery(string url, string operation, list parameters, string xmlns, string responseNode) {
if(xmlns == "") {
xmlns = url;
}
if(responseNode == "") {
responseNode = url + "Response";
}
httpResponse = responseNode;
string body;
body = "op=" + operation;
integer i;
for(i=0; i<llGetListLength(parameters); i += 2) {
if(body != "")
body += "&";
body += llList2String(parameters, i) + "=" + llList2String(parameters, i + 1);
}
//if SL ever supports custom headers, I could make a SOAP call here...
httpQuery = llHTTPRequest(url, [ HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded" ], body);
}
default
{
on_rez(integer num) {
llSetRot(llEuler2Rot(<0, 90, 0>));
llTargetOmega(<0, 0, 1.0>, 6.0, 0.5);
}
state_entry() {
llSetRot(llEuler2Rot(<0, 90, 0>));
llTargetOmega(<0, 0, 1.0>, 6.0, 0.5);
}
http_response(key request_id, integer status, list metadata, string body) {
llDie();
}
touch_start(integer num_detected) {
llSay(0, "Sending info to server - I should die soon");
MerlinHTTPSoapQuery(serveraddress, "test", [], "", "");
}
}

