Add two CGI example and basic Python CGI server.

This commit is contained in:
Michał Zieliński
2013-12-18 18:19:32 +01:00
parent 74a63c004f
commit 101d8bc9c3
4 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env python
import BaseHTTPServer
import CGIHTTPServer
server = BaseHTTPServer.HTTPServer
handler = CGIHTTPServer.CGIHTTPRequestHandler
server_address = ('localhost', 8008)
handler.cgi_directories = ['/']
httpd = server(server_address, handler)
httpd.serve_forever()