The CGI program parses the input from the server and MUST generate a response - even if there is no data to send back, the CGI program must send an error or empty message since the http connection is still open and must be closed by the server. The CGI program will send a header to the server:
-
If the header is type "Location", the server will send the indicated file to the client.
-
If the header is "Content-type", the server will send all the data back to the client. This should be a properly formatted html page.
|