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

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



- When the CGI program starts running it creates or displays a new document and provides the URL of the existing document.

- It sends the output by using the STDOUT (standard output) function used to output the statements as data stream.

- The data stream then further gets divided into two parts:

- The data stream consists of partial or full HTTP header that describes the format of the data and it consists of the information that is returned from the server.
- In this the blank line is used that shows the end of the header section.
- The body part in this consists of the data that is used to confirm the format type that is being reflected in the header.
- This part can be modified or interpreted in any way the server wants.
Post your comment