Basic HTTP CGI Server Example with forking : Web Server : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Web Server »

 

Basic HTTP CGI Server Example with forking


from BaseHTTPServer import HTTPServer
from CGIHTTPServer import CGIHTTPRequestHandler
from SocketServer import ForkingMixIn

class ForkingServer(ForkingMixIn, HTTPServer):
    pass

serveraddr = ('', 8765)
srvr = ForkingServer(serveraddr, CGIHTTPRequestHandler)
srvr.serve_forever()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Network
» Web Server