SLUniverse Forums - View Single Post - 6/13 July = 1.27 Server = HTTP Server in a prim!
View Single Post
Old 07-08-2009, 01:58 AM   #10 (permalink)
Chalice Yao
The Purple
 
Chalice Yao's Avatar
Kinda at work. Somewhat.
 
Join Date: Dec 2007
Location: Somewhere purple, Germany
Posts: 3,516
My Mood:
Code:
key kUrlRequest;
key kDynDnsRequest;
default
{
    on_rez(integer foo)
    {
        kUrlRequest=llRequestSecureURL();
    }
    state_entry()
    {
        kUrlRequest=llRequestSecureURL();
    }
    changed(integer change)
    {
        if((change & CHANGED_REGION) ||(change & CHANGED_REGION_START))
            kUrlRequest=llRequestSecureURL();
    }
    http_request(key id, string method, string body)
    {
        if(id==kUrlRequest)
        {
            if(method == URL_REQUEST_GRANTED)
            {
                //kDynDnsRequest = llHTTPRequest(...);
                //Do your DynDns Request here! >:3
            }
        }
        else if(id!=kDynDnsRequest)
        {
            llHTTPResponse(NULL_KEY, 200, "Your sub is at "+llGetRegionName());
        }
    }
}
You're welcome >:3
__________________
"Have you ever noticed that anybody driving slower than you is an idiot, and anyone going faster than you is a maniac?" - George Carlin

Last edited by Chalice Yao; 07-08-2009 at 03:27 AM.
Chalice Yao is offline   Reply With Quote
1 User Laughed:
1 User Agreed: