What is CGI
CGI is currently maintained by NCSA, and NCSA defines CGI as follows:
CGI (Common Gateway Interface), a universal Gateway interface, is a program that runs on a server such as an HTTP server, providing an interface with the client HTML page.
The browser client passes information to the server in two ways, both the GET method and the POST method.
The Get method sends the encoded user information to the server side, and the data information is included on the URL of the request page with "?". The number is divided as follows:
Http://www.test.com/cgi-bin/hello.py?key1=value1&key2=value2
Here is a simple URL that uses the Get method to send two parameters to a hello_get.py program:
/cgi-bin/hello_get.py?first_name=zara&last_name=ali
Using the Post method to pass data to the server is more secure and reliable, such as sensitive information such as user passwords and the need to use post to transmit data.
PYTHON-CGI programming