In addition to the other suggestions, why not just construct a mini-web-server with HTTP::Daemon, and then you can use basic-AUTH and SSL from any web browser to activate your programs and see the results? Use proven protocols: stop reinventing that wheel unless you're prepared to put in the literally man-years of effort to make it better.