CGIHTTPServer (version 0.3)
index
/usr/lib/python1.6/CGIHTTPServer.py

CGI-savvy HTTP Server.
 
This module builds on SimpleHTTPServer by implementing GET and POST
requests to cgi-bin scripts.
 
If the os.fork() function is not present, this module will not work;
SystemError will be raised instead.

 
Modules
            
BaseHTTPServer
SimpleHTTPServer
os
string
urllib

 
Classes
            
SimpleHTTPServer.SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler)
CGIHTTPRequestHandler

 
class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler)
      Complete HTTP server with GET, HEAD and POST commands.
 
GET and HEAD also support running CGI scripts.
 
The POST command is *only* implemented for CGI scripts.
 
  
__del__(self) from SocketServer.BaseRequestHandler
__init__(self, request, client_address, server) from SocketServer.BaseRequestHandler
address_string(self) from BaseHTTPServer.BaseHTTPRequestHandler
copyfile(self, source, outputfile) from SimpleHTTPServer.SimpleHTTPRequestHandler
date_time_string(self) from BaseHTTPServer.BaseHTTPRequestHandler
do_GET(self) from SimpleHTTPServer.SimpleHTTPRequestHandler
do_HEAD(self) from SimpleHTTPServer.SimpleHTTPRequestHandler
do_POST(self)
Serve a POST request.
 
This is only implemented for CGI scripts.
end_headers(self) from BaseHTTPServer.BaseHTTPRequestHandler
finish(self) from SocketServer.StreamRequestHandler
guess_type(self, path) from SimpleHTTPServer.SimpleHTTPRequestHandler
handle(self) from BaseHTTPServer.BaseHTTPRequestHandler
is_cgi(self)
test whether PATH corresponds to a CGI script.
 
Return a tuple (dir, rest) if PATH requires running a
CGI script, None if not.  Note that rest begins with a
slash if it is not empty.
 
The default implementation tests whether the path
begins with one of the strings in the list
self.cgi_directories (and the next character is a '/'
or the end of the string).
list_directory(self, path) from SimpleHTTPServer.SimpleHTTPRequestHandler
log_date_time_string(self) from BaseHTTPServer.BaseHTTPRequestHandler
log_error(self, *args) from BaseHTTPServer.BaseHTTPRequestHandler
log_message(self, format, *args) from BaseHTTPServer.BaseHTTPRequestHandler
log_request(self, code='-', size='-') from BaseHTTPServer.BaseHTTPRequestHandler
parse_request(self) from BaseHTTPServer.BaseHTTPRequestHandler
run_cgi(self)
Execute a CGI script.
send_error(self, code, message=None) from BaseHTTPServer.BaseHTTPRequestHandler
send_head(self)
Version of send_head that support CGI scripts
send_header(self, keyword, value) from BaseHTTPServer.BaseHTTPRequestHandler
send_response(self, code, message=None) from BaseHTTPServer.BaseHTTPRequestHandler
setup(self) from SocketServer.StreamRequestHandler
translate_path(self, path) from SimpleHTTPServer.SimpleHTTPRequestHandler
version_string(self) from BaseHTTPServer.BaseHTTPRequestHandler

 
Functions
            
executable(path)
Test for executable file.
nobody_uid()
Internal routine to get nobody's uid
test(HandlerClass=<class CGIHTTPServer.CGIHTTPRequestHandler at 8482708>, ServerClass=<class BaseHTTPServer.HTTPServer at 8448530>)

 
Data
             __file__ = '/usr/lib/python1.6/CGIHTTPServer.pyc'
__name__ = 'CGIHTTPServer'
__version__ = '0.3'
nobody = None