void InitHttpServer(int port, bool ssl) { HttpServer = new WebServer(IPAddress.Any, port); // Login webpage HEAD request, used to check if the login webpage is alive HttpServer.AddHandler("head", null, "^/$", LoginWebpageHeadHandler); // Login webpage GET request, gets the login webpage data (purely aesthetic) HttpServer.AddHandler("get", null, @"^/(\?.*)?$", LoginWebpageGetHandler); // Client XML-RPC login HttpServer.AddHandler("post", "text/xml", "^/$", LoginXmlRpcPostHandler); // Client LLSD login HttpServer.AddHandler("post", "application/xml", "^/$", LoginLLSDPostHandler); HttpServer.Start(); }