Thanks for the help, I will give those suggestions a try. I have another suggestion from someone else as well. I'll see what happens and post my results.
BTW, The reason I am not using CGI is because this is running as a 'portal' for some command line scripts. A simple secure http listen server to execute command line functions.