Server Side Includes (SSI) are enabled on dmapub for all documents with a .shtml suffix. The apache server parses the document in search of include commands. The output of the command is inserted into the document where it was called. For more information about SSI see the apache documentation. CGI cannot be used in SSI.
Here is an example of a Server Side Include:
You might want to look at the source of the SSI command.
This is the command in this document that evokes the SSI:
<!--#include virtual="/cgi-bin/cgiwrap/rhawes/cgi-test" -->
Here is the result:
argc is 0. argv is "".
CONTENT_LENGTH =
CONTENT_TYPE =
GATEWAY_INTERFACE = CGI/1.1
PATH_INFO =
QUERY_STRING =
REQUEST_METHOD = GET