home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD><TITLE>CGI Test Program Usage</TITLE></HEAD>
- <BODY><H1>CGI Test Program Usage</H1>
- <B>Visual Basic 3.0 must be installed on your system</B><P>
- <A HREF = "/winhttpd/htdocs/index.htm">Return to Home Page</A>
- <HR>
- The CGI test program is a Visual Basic 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 NCSA httpd for
- Windows.<P>
-
- 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:<P>
-
- <DL>
- <DT><B>CGI</B>
- <DD>Reports the values of the CGI/1.1 variables as passed by the
- server to the back-end.
-
- <DT><B>Headers</B>
- <DD>Reports the MIME Accept: types and any "extra" headers that were
- received from your browser.
-
- <DT><B>Form</B>
- <DD>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.
-
- <DT><B>Transparent</B>
- <DD>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.
-
- <DT><B>Empty - no extra path</B>
- <DD>Causes this document to be returned by sending a one-line response from
- the test program to the server that consists of "Location: /cgitest.htm". In
- other words, a URL with "cgitest.exe" as the target gives usage information.
- </DL>
-
- <H2>Examples:</H2>
-
- <PRE><A HREF = "/winhttpd/cgi-win/cgitest.exe/CGI">/cgi-win/cgitest.exe/CGI</A>
- <A HREF = "/winhttpd/cgi-win/cgitest.exe/CGI?Query+Info+Here">/cgi-win/cgitest.exe/CGI?Query+Info+Here</A>
- <A HREF = "/winhttpd/cgi-win/cgitest.exe/Headers">/cgi-win/cgitest.exe/Headers</A>
- <A HREF = "/winhttpd/cgi-win/cgitest.exe/Transparent">/cgi-win/cgitest.exe/Transparent</A>
- </PRE>
-
- 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:
-
- <PRE>ACTION="/winhttpd/cgi-win/cgitest.exe/Form"</PRE>
-
- The "search on" field supports multiple selections. Try it and see
- how the server handles decoding it.
-
- Here is the form:
- <HR>
- <FORM METHOD="POST" ACTION="/winhttpd/cgi-win/cgitest.exe/Form">
-
- <B>Employee Locator</B><P>
-
- Search on (multiple)<SELECT NAME="LookFor" MULTIPLE>
- <OPTION SELECTED>Name
- <OPTION>Title
- <OPTION>Department
- <OPTION>Location
- </SELECT><P>
-
- which <SELECT NAME="How">
- <OPTION SELECTED>starts with
- <OPTION>contains
- <OPTION>is exactly
- <OPTION>sounds like
- </SELECT><P>
-
- the following: <INPUT TYPE="text" NAME="Match-pattern"><P>
- <INPUT TYPE="checkbox" NAME="Use-Case" VALUE="Yes">Case-sensitive<P>
- <INPUT TYPE="submit" VALUE="Submit">
- </FORM>
-
- <HR>
- Copyright (C) 1995 Vermeer Technologies, Inc. All rights reserved.
-
-
-
-
-