# logging in connections

"Adams, Charles" (cadams@msgate.litc.lockheed.com)
Fri, 2 Aug 1996 10:56:00 PDT

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

    >From E_MOO:'s $httpd:do_login_command()

    set_connection_option(player, "hold-input", 1);
    lines = {};
    count = 1;
    su = $string_utils;
    while (line = read(player))
      lines = {@lines, line};
      if (count == 1 && length(su:words(line)) == 2)
        //special catch for HTTP/0.9
        break;
      endif
      count = count + 1;
    endwhile

    works just dandy for us.