Question: how cgi works in python?
Answer: What is Python CGI Programming? Python CGI stands for Common Gateway Interface. An HTTP server invokes a Python CGI script so it can process user input that a user may submit through an HTML <FORM> or <ISINDEX> element. Such a script usually lives in the server's special cgi-bin directory.