python3 -c 'import http.server; http.server.HTTPServer(("", 10888), http.server.CGIHTTPRequestHandler).serve_forever()'
Advertisements
python3 -c 'import http.server; http.server.HTTPServer(("", 10888), http.server.CGIHTTPRequestHandler).serve_forever()'
Pingback: Python 3 CGI web server with cgi-bin directory « One Liner Code - cgi
Easier is python3 -m http.server 10888
That won’t give you a CGI drectory in Python 3. You are referring to my other post https://onelinercode.wordpress.com/2011/02/28/python-3-web-server-the-current-directory/
Python 3.3 will feature “python -m http.server –cgi 8000”.