MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: multiple line input via :do_login_command
At 01:18 PM 8/2/96 PDT, Colin McCormick wrote:
>We've got a hunch MOO would be a good way to do it;
>imagine looking at a Web page and being able to comment on it directly to
>the page designer, who is "standing in the page" with you ... the page
>being, of course, a MOO room whose description is an HTML document (the
>crudest way of doing it.) There's a lot to be said for state-maintaining
>HTTP connections (don't forget the uses of server pushes as well) and hey
>-- why not use MOO?
This is what I'm doing! Each document is a room, and exits are "filenames".
Take for example the following URI...
/netsville/services/whisper?text=foo
The connection is logged in, then "walks" (it doesn't really walk; this
would be cool for VR purposes to those actually inside the rooms, but it's
costly and redundant in practice unless each $http_request is remembered and
its last "location" recorded) from Server Root through the "netsville" exit
then through the "services" exit.
The "whisper" method is called on the "services" destination, with no
arguments. The value of 'player' is the http request, and it holds the
decoded query string (gleaned via either url-decoding GET?FOO or the entity
body). Calling :get_query_value("text") on the player will return "foo" and
there ya have it.
(It's kind of a virtual file system. I've for some time wanted to write a
UNIX shell that was like a MUD. When you "look" you see an `ls` along with
all whose `pwd` is the same as yours. "say" would `write` to all those folks.)
Anyway, it's a neat little way to serve web pages and it's easy as @digging.
FUN FUN FUN!
I HAVE HAD A LOT OF COFFEE TODAY.
-Quinn
-http://www.bga.com/~quinn/
(The whisper "CGI" demonstrated above is on my homepage; it will page me on
my MOO, but I'm gonna go eat some fajitas in a second here so I probably
won't be able to page you back, which is a good excuse since I haven't wrote
the stuff to page you back yet. I also really want some fajitas.)
Home |
Subject Index |
Thread Index