If you are interested, you should look at the source for the CGI script used in these examples.
This document is a modified version of the one taken from CGI examples It is provided to give a better understanding of how cgiwrap on dmapub works in reality. To use scripts in your cgi-bin (on dmapub) replace rhawes with your login name.
This is just a request for a CGI script with no extra path information and no query.
/cgi-bin/cgiwrap/rhawes/cgi-test
This is a request for a script with extra path information, and no query.
/cgi-bin/cgiwrap/rhawes/cgi-test/extra/path
This is a request for a script with no extra path information, and an ISINDEX query.
/cgi-bin/cgiwrap/rhawes/cgi-test/extra/path?query
This is a request for a script with extra path information as well as an ISINDEX query.
/cgi-bin/cgiwrap/rhawes/cgi-test/extra/path?a+query