adspace


What are the steps involved when the cgi program starts running?

Answer Posted / Bhanu Pratap Sharma

When a CGI (Common Gateway Interface) program starts running, the following steps typically occur: 1. The web server receives a request for a resource that is associated with a CGI script. 2. The web server executes the CGI script, which may involve reading any necessary configuration files or setting up any required environment variables. 3. The CGI script reads input data from standard input (STDIN), typically in the form of HTTP request headers and body. 4. The CGI script processes the input data, generates output data, and writes it to standard output (STDOUT). 5. The web server receives the output data from the CGI script and sends it back to the client as part of the HTTP response.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is perl? What is the basic command to print a string in perl?

944


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

2460


How do find the length of an array?

1216


How to connect to SQL server through Perl?

1148