string baseURL1 = "https://www.wellsfargo.com";
string baseURL2 = "https://www.fonmeta.com";
key Q1;
key Q2;
key Q3;
default
{
touch_start(integer total_number)
{
Q1=llHTTPRequest( baseURL1, [HTTP_METHOD,"GET"],""
;
Q2=llHTTPRequest( baseURL2, [HTTP_METHOD,"GET"],""
;
Q3=llHTTPRequest( baseURL2, [HTTP_METHOD,"GET",HTTP_VERIFY_CERT,FALSE],""
;
}
http_response(key quid, integer status, list metadata, string body)
{
string baseURL;
if(quid == Q1)
baseURL = baseURL1;
else if (quid == Q2)
baseURL = baseURL2;
else if (quid == Q3)
baseURL = baseURL2+" with cert checking disabled";
else
baseURL = "WTF??";
if(status == 499)
llOwnerSay("Request to "+baseURL+" timed out"
;
else if (status != 200)
llOwnerSay("Unexpected HTTP response "+(string)status);
else
llOwnerSay("normal response from "+baseURL);
}
}
string baseURL2 = "https://www.fonmeta.com";
key Q1;
key Q2;
key Q3;
default
{
touch_start(integer total_number)
{
Q1=llHTTPRequest( baseURL1, [HTTP_METHOD,"GET"],""
;Q2=llHTTPRequest( baseURL2, [HTTP_METHOD,"GET"],""
;Q3=llHTTPRequest( baseURL2, [HTTP_METHOD,"GET",HTTP_VERIFY_CERT,FALSE],""
;}
http_response(key quid, integer status, list metadata, string body)
{
string baseURL;
if(quid == Q1)
baseURL = baseURL1;
else if (quid == Q2)
baseURL = baseURL2;
else if (quid == Q3)
baseURL = baseURL2+" with cert checking disabled";
else
baseURL = "WTF??";
if(status == 499)
llOwnerSay("Request to "+baseURL+" timed out"
;else if (status != 200)
llOwnerSay("Unexpected HTTP response "+(string)status);
else
llOwnerSay("normal response from "+baseURL);
}
}
Output follows:
[18:32] Object: Request to https://www.fonmeta.com timed out
[18:32] Object: normal response from https://www.wellsfargo.com
[18:32] Object: normal response from https://www.fonmeta.com with cert checking disabled
A "standard" cert from goDaddy merely attests that the owner controls the domain in question. That is, no identity testing beyond a response to email directed to the domain administrative address is done. If that's an issue, it certainly isn't documented anywhere, and I want LL to pay for the cert. (I'm not holding my breath on that one.)
