CGI, the common gateway interface, belongs to oneWebThe server provides a standard interface for information services. Browser accesswebserver,webThe server can passCGIThe interface obtains the information submitted by the client and forwards it to the server sideCGIThe program processes, and finally returns the result to the client.
CGIThe system is mainly operated by the browserHTMLThe page is already on the serverCGIProgram composition.
The entire communication uses theHTTP protocol, so you need to know the browser Which CGI program on the server is requested to be executed.
server andCGI Interaction requires the assistance of environment variables. EachCGI program can only handle one user request , So when a CGI program process is activated, the environment variables belonging to the process are also created .
CGIis a standardized protocol that enables applications to be called CGIprogram orCGI< span style="font-family:宋体">Script, same aswebserver and client End to interact. CGIThe program can be usedPython,PERL,Shell,C/C++ and other languages.