Creating an HTTP Server to Process CGI Scripts : Web Server : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Web Server »

 

Creating an HTTP Server to Process CGI Scripts


import os
import BaseHTTPServer, CGIHTTPServer

serverAddr = (""80)

os.chdir("/myTest")

serv = BaseHTTPServer.HTTPServer(serverAddr, CGIHTTPServer.CGIHTTPRequestHandler)

serv.serve_forever()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Network
» Web Server