]>
git.saurik.com Git - apt.git/blob - mirror-failure.py
1 # File: cgihttpserver-example-1.py
6 class Handler(CGIHTTPServer
.CGIHTTPRequestHandler
):
7 #cgi_directories = ["/cgi"]
13 print self
.client_address
14 data
= self
.rfile
.read(int(self
.headers
["content-length"]))
16 self
.wfile
.write("200 Ok\n");
20 httpd
= BaseHTTPServer
.HTTPServer(("", PORT
), Handler
)
21 print "serving at port", PORT