/// <summary> /// The handler for HTTP POST requests. /// TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong? /// </summary> /// <param name="processor">The HTTP processor.</param> public void HttpPostHandler(HttpProcessor processor) { string data = string.Empty; do { int next = processor.StreamInput.ReadByte(); if (next == -1) break; data += Convert.ToChar(next); } while (true); processor.WriteLine("<html>A post? Thank you. I needed that.</html>"); }