PYTHON-CGI programming

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.