using (var server = new SimpleHttpServer()) { do { server.Listen(80); var request = server.AcceptRequest(); var uri = server.RequestUri; server.ResponseHeader.ContentType = "text/html"; server.KeepConnection = false; if (uri.IndexOf("stop") > -1) { server.SendResponse(200, "OK", "<html><body>Server stopped.</body></html>"); break; } server.SendResponse(200, "OK", "<html><body>Your requested the " + uri + " resource.</body></html>"); } while (true); }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add admin@clevercomponents.com to your trusted senders list in your email software.