6/13 July = 1.27 Server = HTTP Server in a prim! - SLUniverse Forums
 
Navigation » SLUniverse Forums > Community Discussion > General SL Discussion » 6/13 July = 1.27 Server = HTTP Server in a prim!


General SL Discussion Discuss topics related to Second Life

Reply
 
LinkBack Thread Tools Display Modes
Old 07-04-2009, 04:48 PM   #1 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
6/13 July = 1.27 Server = HTTP Server in a prim!

LSL http server - Second Life Wiki

Release Notes/Second Life Beta Server/1.27 - Second Life Wiki


Last edited by Psyke Phaeton; 07-04-2009 at 06:16 PM.
Psyke Phaeton is offline   Reply With Quote
1 User Agreed:
Old 07-04-2009, 06:44 PM   #2 (permalink)
Senior Member
Confused
 
Join Date: Sep 2007
Location: England
Posts: 593
Remind me to look at this when I'm not drinking Stella, this has potential...I think!
Ciaran Laval is offline   Reply With Quote
Old 07-04-2009, 06:56 PM   #3 (permalink)
posts... sometimes.
 
Shyotl's Avatar
 
Join Date: Nov 2007
Posts: 249
My Mood:
SL Join Date: 06/15/05
Quote:
The content type of the returned data is always 'text/plain; utf-8'
Damn.. I can see php front-ends to control objects getting quite popular, however. It's much much easier than previous methods in that regard. Just need to use file_get_contents in php and in a few moments you'll have a response from the targeted object with data you can then format to your hearts content.

Can we launch the in-world browser through LSL now, LL? Please?
__________________
Shyotl is offline   Reply With Quote
Old 07-04-2009, 09:31 PM   #4 (permalink)
Senior Member

SLU Supporter
 
Adam Zaius's Avatar
Better than Joshua at worms armageddon.
 
Join Date: Sep 2007
Location: Perth, Orstraya.
Posts: 3,211
My Mood:
SL Join Date: 9-Jan-04
Business: Azure Islands
Send a message via Skype™ to Adam Zaius
Man, SL scripters are so easily amused. ;P
Adam Zaius is offline   Reply With Quote
Old 07-04-2009, 10:03 PM   #5 (permalink)
posts... sometimes.
 
Shyotl's Avatar
 
Join Date: Nov 2007
Posts: 249
My Mood:
SL Join Date: 06/15/05
Quote:
Originally Posted by Adam Zaius View Post
Man, SL scripters are so easily amused. ;P
You seem amused by the amusement, no?
Shyotl is offline   Reply With Quote
1 User Laughed:
Old 07-04-2009, 10:05 PM   #6 (permalink)
important cog
 
Toritoys Tigerpaw's Avatar
 
Join Date: Feb 2008
Posts: 199
My Mood:
Insert obligatory whine about no stable URLs here.
Toritoys Tigerpaw is offline   Reply With Quote
Old 07-07-2009, 01:17 PM   #7 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
So I have been playing around with this in Aditi. The response the prim server sends back is content-type "text/plain"
No HTML, no way to make web based menus


Psyke Phaeton is offline   Reply With Quote
1 User Said Yay!:
Old 07-08-2009, 02:34 AM   #8 (permalink)
The Purple
 
Chalice Yao's Avatar
Kinda at work. Somewhat.
 
Join Date: Dec 2007
Location: Somewhere purple, Germany
Posts: 3,096
My Mood:
yuh.

Quote:
The content type of the returned data is always 'text/plain; utf-8' Allowing more content type options is a possibility for the future, but not guaranteed.
However what you can do is make your own web server interprete the returned text.

HTTP replies from prims are, however, utter seks when it comes to prim-to-prim communication grid-wide :3

Screw llEmail().

llHTTPRequest() -> llHTTPResponse().
__________________
"Have you ever noticed that anybody driving slower than you is an idiot, and anyone going faster than you is a maniac?" - George Carlin
Chalice Yao is offline   Reply With Quote
1 User Agreed:
Old 07-08-2009, 02:44 AM   #9 (permalink)
Tired
 
Brenda Archer's Avatar
Hokey religions and ancient weapons are no match for a good blaster at your side
 
Join Date: Sep 2007
Location: Portland
Posts: 3,830
My Mood:
SL Join Date: 4/28/2005
Blog Entries: 4
Hot dayummn! I have fired off an email about this to my php inclined dear friend, who has a little project going this could be useful to
Brenda Archer is offline   Reply With Quote
Old 07-08-2009, 02:58 AM   #10 (permalink)
The Purple
 
Chalice Yao's Avatar
Kinda at work. Somewhat.
 
Join Date: Dec 2007
Location: Somewhere purple, Germany
Posts: 3,096
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

Last edited by Chalice Yao; 07-08-2009 at 04:27 AM.
Chalice Yao is offline   Reply With Quote
1 User Laughed:
1 User Agreed:
Old 07-09-2009, 03:05 AM   #11 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
I am now thinking Java app or flash.
So whats the simplest way to turn this text/plain into a useful web based menu?
Psyke Phaeton is offline   Reply With Quote
Old 07-09-2009, 08:49 PM   #12 (permalink)
Eclectic Randomness
 
Winter Ventura's Avatar
Predictable Experience
 
Join Date: Sep 2007
Location: Pod Six
Posts: 1,200
My Mood:
SLShopper Ads: 5
SL Join Date: 7/13/2006
While yes, this will be cool, I'm mostly just looking forward to the HippoVEND system that will be possible once this is released.
__________________

Inworld Store: http://slurl.eclectic-randomness.com
Website: http://www.eclectic-randomness.com
Twitter: WinterVentura
Winter Ventura is online now   Reply With Quote
Old 07-09-2009, 09:05 PM   #13 (permalink)
Now with 40% more Awesome
 
Siggy's Avatar
Racin' the griefers
 
Join Date: Aug 2007
Posts: 2,047
My Mood:
SLShopper Ads: 31
Does make me wonder about the timing of this - after buying xstreet/onrez they have to work with the tools they've stuck us with for the longest time... now .. voila... magic... some functionality (that by wondrous coincidence could also make their xstreet->sl interfaces work better).

I'm not complaining at all - just sayin.
__________________
And as it was in the beginning, so too shall it be in the end. That bullshit is bullshit, it just goes by different names.
Siggy is online now   Reply With Quote
Old 07-10-2009, 12:55 AM   #14 (permalink)
CS Violator
 
Mecha Dinosaur's Avatar
I make people feel icky
 
Join Date: Sep 2007
Posts: 1,206
My Mood:
SL Join Date: 6/13/2006
Blog Entries: 3
Send a message via ICQ to Mecha Dinosaur Send a message via AIM to Mecha Dinosaur Send a message via Yahoo to Mecha Dinosaur Send a message via Skype™ to Mecha Dinosaur
Did LL really drop this out of the blue? If so, and with the simple text only output then Siggy's post feels correct.

Now why won't LL do direct prim/object to prim/object communication so we can not clutter the channels and risk people peeking into object comms?
__________________
I don't use IE
Mecha Dinosaur is offline   Reply With Quote
Old 07-10-2009, 01:39 AM   #15 (permalink)
Now with 40% more Awesome
 
Siggy's Avatar
Racin' the griefers
 
Join Date: Aug 2007
Posts: 2,047
My Mood:
SLShopper Ads: 31
Quote:
Originally Posted by Mecha Dinosaur View Post
Did LL really drop this out of the blue? If so, and with the simple text only output then Siggy's post feels correct.

Now why won't LL do direct prim/object to prim/object communication so we can not clutter the channels and risk people peeking into object comms?
Straight up answer?

'Not Shiney'

At least one benefit with this is that we can move past the god awful system of email for inter sim object comms... even if its a sort of gimpy half step.
Siggy is online now   Reply With Quote
Old 07-10-2009, 01:52 AM   #16 (permalink)
Doing stuff
 
WarKirby Magojiro's Avatar
Happles!
 
Join Date: Sep 2007
Location: Glasgow, Scotland
Posts: 2,778
My Mood:
SLShopper Ads: 1
SL Join Date: 14/10/2006
Business: MagoTek Industries
communications... meh.

It's nice, but I want mesh import.
__________________
Wounds, both physical and mental, heal in time. bones reknit, therapy and drugs make you forget. Life goes on.
But nothing cures death. Please remember this.


Quote:
"Beware he who would deny you access to information, for in his heart he dreams
himself your master."
WarKirby Magojiro is offline   Reply With Quote
Old 07-10-2009, 05:25 AM   #17 (permalink)
important cog
 
Toritoys Tigerpaw's Avatar
 
Join Date: Feb 2008
Posts: 199
My Mood:
Quote:
Originally Posted by Mecha Dinosaur View Post
Did LL really drop this out of the blue?
It's been in the works since 2007, the real motivation is that they weren't finding ways to make xmlrpc scale better.
Quote:
Now why won't LL do direct prim/object to prim/object communication so we can not clutter the channels and risk people peeking into object comms?
It runs into the same scaling problems once you want to cross a sim border :/ That's why we have to roll our own persistent URLs with http_server, so LL can skip the tracking problem.
Toritoys Tigerpaw is offline   Reply With Quote
1 User Agreed:
Old 07-10-2009, 05:36 AM   #18 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
I agree, the http server stuff has been in the works for a long time to solve many scaling problems. The outcome of this is things like Snowglobe and this. I am glad they have shared it with us and made a fast object-to-object communications method. I am disappointed though that they included things like:

LlGetHTTPHeader
"x-path-info": Any trailing path information from the requested url
"x-query-string": Any query arguments, the text past a ? in the url

and not give us text/html so we can make links to use those.
Psyke Phaeton is offline   Reply With Quote
Old 07-18-2009, 02:22 PM   #19 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
Well according to this [#SVC-4582] IE does not render linefeeds sent with llHTTPResponse - Second Life Issues IE will show the text/plain as text/html. Thereby making web based menus possible but only on IE!
Psyke Phaeton is offline   Reply With Quote
2 Users Laughed:
Old 07-19-2009, 01:14 AM   #20 (permalink)
Senior Member

SLU Supporter
 
Psyke Phaeton's Avatar
Running 'round in Circle's
 
Join Date: Sep 2007
Location: Australia
Posts: 6,953
My Mood:
SLShopper Ads: 1
SL Join Date: 12-Oct-2003
Blog Entries: 3
Want better looking menus for your scripted items? [#SVC-3427] Permit HTTP-in to serve text/html to inworld user agents - Second Life Issues
Psyke Phaeton is offline   Reply With Quote
Reply

Tags
http in a prim

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On