:mod:`cgi` --- Common Gateway Interface support =============================================== .. module:: cgi :synopsis: Helpers for running Python scripts via the Common Gateway Interface. **Source code:** :source:`Lib/cgi.py` .. index:: pair: WWW; server pair: CGI; protocol pair: HTTP; protocol pair: MIME; headers single: URL single: Common Gateway Interface -------------- Support module for Common Gateway Interface (CGI) scripts. This module defines a number of utilities for use by CGI scripts written in Python. The global variable ``maxlen`` can be set to an integer indicating the maximum size of a POST request. POST requests larger than this size will result in a :exc:`ValueError` being raised during parsing. The default value of this variable is ``0``, meaning the request size is unlimited. Introduction ------------ .. _cgi-intro: A CGI script is invoked by an HTTP server, usually to process user input submitted through an HTML ``