| |
- 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.
|
| |
- do_POST(self)
- Serve a POST request.
- This is only implemented for CGI scripts.
- 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).
- run_cgi(self)
- Execute a CGI script.
- send_head(self)
- Version of send_head that support CGI scripts
| |