# WWW on MOO

"Steven R. Loomis" (srl@monkey.sbay.org)
Wed, 28 Feb 1996 23:27:06 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    Michael Brundage <anomaly@u.washington.edu> said:
    >>You know I keep hearing about adding web to this moo and adding FUP to
    >>this one.. internetworking moo on this one..

    >In any case, making your MOO handle web requests is no big deal.  It needs
    >to handle connections which send an initial login command of GET or POST,
    >like
    >   GET somedocumentpath someversionnumber
    >In the case of POST commands (for forms), you will also need to read and
    >decode the additional lines of text (which contain the forms data).
    >Finally, you'll need to perform boot_player() on the connection, so that
    >the Web client knows you're done.

    I am trying that, however the problem I have having is that the
    welcome_message is getting printed back on the HTTP client.  I am trying
    to put HTTP authentication in here, too, so I'd like to be able to send
    back text right from the response code (i.e '200 OK...').

    I tried nulling out the welcome_message and setting the blank_command to
    a command which does nothing. I even tried sending '200 OK' as the first
    line of #0:do_login_command ... Still, the web browser isn't interpreting
    the '200 OK' as the first piece of data.

    Next I'll look at the server source itself.

    Any pointers would be appreciated... Thanks!

    --
    Steven R. Loomis     srl@monkey.sbay.org    Sysop of Monkey Lives BBS
    http://www.monkey.sbay.org/~srl/                 aka "strcpy"