Generalized algorithm works through CGI can be represented as follows:
1. The client requests a CGI-application on its URI.
2. The web server receives the request, set environment variables, through their application data and service information is transmitted.
3. The Web server forwards the request (stdin) to the input of the called program.
CGI-application performs all the necessary operations and produces the results in HTML.
4. Formed back hypertext web server via (stdout).
5. Error messages - stderr.
6. The web server transmits the results to the client request.
Generalized algorithm works through CGI can be represented as follows:
1
. The client requests a CGI-application on its URI.2
. The web server receives the request, set environment variables, through their application data and service information is transmitted.3
. The Web server forwards the request (stdin) to the input of the called program. CGI-application performs all the necessary operations and produces the results in HTML.4
. Formed back hypertext web server via (stdout).5
. Error messages - stderr.6
. The web server transmits the results to the client request.