home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / ftpage / disk7 / cgitest.ht_ / cgitest.ht
Encoding:
Text File  |  1995-09-07  |  2.9 KB  |  89 lines

  1. <HTML>
  2. <HEAD><TITLE>CGI Test Program Usage</TITLE></HEAD>
  3. <BODY><H1>CGI Test Program Usage</H1>
  4. <B>Visual Basic 3.0 must be installed on your system</B><P>
  5. <A HREF = "/winhttpd/htdocs/index.htm">Return to Home Page</A>
  6. <HR>
  7. The CGI test program is a Visual Basic application that returns
  8. dynamically generated documents which report on various aspects
  9. of the CGI interface. It also serves as an example of using the
  10. Visual Basic CGI interface that is included with NCSA httpd for
  11. Windows.<P>
  12.  
  13. To generate a particular report, add
  14. "extra path information" to the URL. The test program interprets
  15. this as a "selector" for the report and returns the selected
  16. report. The valid selectors are:<P>
  17.  
  18. <DL>
  19. <DT><B>CGI</B>
  20. <DD>Reports the values of the CGI/1.1 variables as passed by the
  21. server to the back-end.
  22.  
  23. <DT><B>Headers</B>
  24. <DD>Reports the MIME Accept: types and any "extra" headers that were
  25. received from your browser.
  26.  
  27. <DT><B>Form</B>
  28. <DD>Use this on a URL that is the target for a Mosaic form. It reports the
  29. keywords and fully decoded contents of each of your form's fields.
  30.  
  31. <DT><B>Transparent</B>
  32. <DD>This causes a short document to be returned directly from the Visual
  33. Basic program to your browser, without interpretation by the server. This
  34. is an illustration of the server's "transparent return" feature.
  35.  
  36. <DT><B>Empty - no extra path</B>
  37. <DD>Causes this document to be returned by sending a one-line response from
  38. the test program to the server that consists of "Location: /cgitest.htm". In
  39. other words, a URL with "cgitest.exe" as the target gives usage information.
  40. </DL>
  41.  
  42. <H2>Examples:</H2>
  43.  
  44. <PRE><A HREF = "/winhttpd/cgi-win/cgitest.exe/CGI">/cgi-win/cgitest.exe/CGI</A>
  45. <A HREF = "/winhttpd/cgi-win/cgitest.exe/CGI?Query+Info+Here">/cgi-win/cgitest.exe/CGI?Query+Info+Here</A>
  46. <A HREF = "/winhttpd/cgi-win/cgitest.exe/Headers">/cgi-win/cgitest.exe/Headers</A>
  47. <A HREF = "/winhttpd/cgi-win/cgitest.exe/Transparent">/cgi-win/cgitest.exe/Transparent</A>
  48. </PRE>
  49.  
  50. If your browser supports forms, you should see a form below. Fill it out and choose
  51. the Submit button. The form's ACTION option is:
  52.  
  53. <PRE>ACTION="/winhttpd/cgi-win/cgitest.exe/Form"</PRE>
  54.  
  55. The "search on" field supports multiple selections. Try it and see
  56. how the server handles decoding it.
  57.  
  58. Here is the form:
  59. <HR>
  60. <FORM METHOD="POST" ACTION="/winhttpd/cgi-win/cgitest.exe/Form">
  61.  
  62. <B>Employee Locator</B><P>
  63.  
  64. Search on (multiple)<SELECT NAME="LookFor" MULTIPLE>
  65. <OPTION SELECTED>Name
  66. <OPTION>Title
  67. <OPTION>Department
  68. <OPTION>Location
  69. </SELECT><P>
  70.  
  71. which <SELECT NAME="How">
  72. <OPTION SELECTED>starts with
  73. <OPTION>contains
  74. <OPTION>is exactly
  75. <OPTION>sounds like
  76. </SELECT><P>
  77.  
  78. the following: <INPUT TYPE="text" NAME="Match-pattern"><P>
  79. <INPUT TYPE="checkbox" NAME="Use-Case" VALUE="Yes">Case-sensitive<P>
  80. <INPUT TYPE="submit" VALUE="Submit">
  81. </FORM>
  82.  
  83. <HR>
  84. Copyright (C) 1995 Vermeer Technologies, Inc.  All rights reserved.
  85.  
  86.  
  87.  
  88.  
  89.