NonThreadedRequestHandler rh = new NonThreadedRequestHandler();
root.addLast(rh);
HttpServer server = new HttpServer(root);
server.setRequestTimeoutMillis(1000);
server.start();
ConnectionUtils.registerMBean(server);
IBlockingConnection con = new BlockingConnection("localhost", server.getLocalPort());
con.write("POST / HTTP/1.1\r\n" +