How to do CGI programming in Python?

PythonServer Side ProgrammingProgrammingCGI

CGI Programming

The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between a web server and a custom script.

Python CGI Programming is about running our Python Scripts on the web. For that we have to learn how Python can be executed as a CGI Script. We must know first how to configure our web server to make Python run as CGI. We then see how a simple Python CGI Script looks like and what are the different components of the CGI script. We also familiarise ourselves with the kind of errors we may find while running CGI script and their fixes. We also debug the script wherever necessary, and learn about locking, sessions, cookies, generating HTML, and some basic issues about performance.

Published on 30-Jan-2018 16:44:32