Windows CGI Test Program Usage
Return to Self-Test
The CGI test program is a Visual Basic 5 (32-bit) application that
returns dynamically generated documents which report on various aspects
of the CGI interface. It also serves as an example of using the Visual
Basic CGI interface that is included with WebSite.
To generate a particular report, add
"extra path information" to the URL. The test program interprets
this as a "selector" for the report and returns the selected
report. The valid selectors are:
- CGI
- Reports the values of the variables as passed by the
server to the CGI program.
- Headers
- Reports the MIME Accept: types and any "extra" headers that were
received from your browser.
- Form
- Use this on a URL that is the target for a Mosaic form. It reports the
keywords and fully decoded contents of each of your form's fields.
- Transparent
- This causes a short document to be returned directly from the Visual
Basic program to your browser, without interpretation by the server. This
is an illustration of the server's "transparent return" feature.
- Empty - no extra path
- Causes this document to be returned by sending a one-line response from
the test program to the server that consists of "Location: /cgitest32.html". In
other words, a URL with "cgitest32.exe" as the target gives usage information.
Examples:
/cgi-win/cgitest32.exe/CGI
/cgi-win/cgitest32.exe/CGI?Query+Info+Here
/cgi-win/cgitest32.exe/Headers
/cgi-win/cgitest32.exe/Transparent
If your browser supports forms, you should see a form below. Fill it out and choose
the Submit button. The form's ACTION option is:
ACTION="/cgi-win/cgitest32.exe/Form"
The "search on" field supports multiple selections. Try it and see
how the server handles decoding it.
Here is the form:
website-support@ora.com