:mod:`cgi` --- Common Gateway Interface support =============================================== .. module:: cgi :synopsis: Helpers for running Python scripts via the Common Gateway Interface. :deprecated: **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 .. deprecated:: 3.11 The :mod:`cgi` module is deprecated (see :pep:`594` for details). -------------- 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 ``