Get the App
SLTechnology News&Howtos  ›  Development  › 

What is Python CGI programming?

Shulou Source: shulou.com Published: 2022-06-01 01:33:25 09月21日 Update

This article mainly explains "what is Python CGI programming". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what Python CGI programming is.

What is CGI?

CGI is currently maintained by NCSA. NCSA defines CGI as follows:

CGI (Common Gateway Interface), a universal gateway interface, is a program that runs on a server, such as a HTTP server, and provides an interface with client HTML pages.

Web browsing

To better understand how CGI works, we can start from clicking a link or URL process on a web page:

1. Use your browser to access URL and connect to the HTTP web server.

2. After receiving the request information, the Web server parses the URL and finds whether the accessed file exists on the server. If there is a content of the returned file, an error message is returned.

3. The browser receives information from the server and displays the received files or error messages.

CGI programs can be Python scripts, PERL scripts, SHELL scripts, C or C++ programs, etc.

CGI architecture diagram

Thank you for your reading, the above is the content of "what is Python CGI programming", after the study of this article, I believe you have a deeper understanding of what Python CGI programming is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Servers services programming information content files programs scripts learning browsing interfaces browsers web pages errors customers clients that is ideas situations articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft NVidia Shulou Technology macOS