Command-line server wrapper for http handler