Fiddeled around a bit. Used the simplest python cgi server python -m http.server 8088 --cgi Run
the in cgi-binhello import cgi var myData = readData() writeContentType() echo "Content-Type: text/html\n" #? echo "<html><head><title>Hello world</title></head>" echo "<body>" echo "<h1>hello world...</h1>" echo "<p>getContentLength ", getContentLength(),"</p>" echo "<p>getContentType ", getContentType(),"</p>" echo "<p>getDocumentRoot ", getDocumentRoot(),"</p>" echo "<p>getGatewayInterface ", getGatewayInterface(),"</p>" echo "<p>getHttpAccept ", getHttpAccept(),"</p>" echo "<p>getHttpAcceptCharset ", getHttpAcceptCharset(),"</p>" echo "<p>getHttpAcceptEncoding ", getHttpAcceptEncoding(),"</p>" echo "<p>getHttpAcceptLanguage ", getHttpAcceptLanguage(),"</p>" echo "<p>getHttpConnection ", getHttpConnection(),"</p>" echo "<p>getHttpCookie ", getHttpCookie(),"</p>" echo "<p>getHttpHost ", getHttpHost(),"</p>" echo "<p>getHttpReferer ", getHttpReferer(),"</p>" echo "<p>getHttpUserAgent ", getHttpUserAgent(),"</p>" echo "<p>getPathInfo ", getPathInfo(),"</p>" echo "<p>getQueryString ", getQueryString(),"</p>" echo "<p>etcetera...</p> for i in decodeData(): echo i echo "<body>\n</html>" Run and in the browser: http://localhost:8088/cgi-bin/hello?test=42&more=9 Run