Universal CGI classes and functions.
def getRequest(env, args, src = None):
Returns a CGIRequest from the dictionary env. env should contain the standard CGI environment variables.
if src is provided, it should be a file object (usually the CGI program's standard input stream) from which to parse query parameters that have come in through a form's "POST" method.
args should be the CGI command's argument list.
The following variables are currently used if they exist:
Additional path info added after the cgi program name.
A string containing the standard CGI representation of query parameters.
def _fixEscape(escape):
def parseQuery(queryString):
Parses a CGI query string and returns a dictionary containing its values.
Encodes a text string, converting all of the unsavory characters to the
officially sanctioned '%' escape sequences.
_encodeMatch(m)
def _encodeMatch(m):
encodeString(str)
def encodeString(str):