home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / ftpage / disk6 / examples.ht_ / examples.ht
Encoding:
Text File  |  1995-09-13  |  3.7 KB  |  77 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>CGI Test Cases (Windows version)</TITLE>
  7. <META NAME="GENERATOR" CONTENT="Vermeer FrontPage 1.0">
  8. </HEAD>
  9.  
  10. <BODY>
  11. <H1>CGI Test Cases (Windows version)</H1>
  12. <HR>
  13. <P>This document contains a number of trivial examples of CGI usage. It requires access via a 
  14. server, not in local file mode. Also, you must be using a browser that supports HTML forms. </P>
  15. <P>If you are currently reading in local file mode, start your server now, then <A HREF="http://127.0.0.1/httpddoc/info/cgi/examples.htm">click here</A> to switch to 
  16. client-server mode. This same document <I>might</I> appear shortly...</P>
  17. <P>If you made it this far, you're ready to try the scripts. Strictly speaking, it wouldn't have been 
  18. necessary to switch to client-server mode, the <A HREF="../urlprimr.htm">URL</A>s for the script examples would make the 
  19. connection via the network even from local file mode. However, I wanted to make sure you had 
  20. your server running and were able to communicate with it. If you are interested, you should look 
  21. at the <A HREF="test-cgi.txt">source</A> for the CGI script used in these examples. </P>
  22. <P>For more source of CGI scripts, see the <A HREF="file://ftp.ncsa.uiuc.edu/Web/ncsa_httpd/cgi">CGI archive</A> of scripts people have written. In addition, 
  23. see the NCSA httpd distribution in the <CODE>cgi-src</CODE> directory. </P>
  24. <P></P>
  25. <HR>
  26. <P>This is just a request for a CGI script with no extra path information and no query. </P>
  27. <P><A HREF="/winhttpd/cgi-dos/test-cgi.bat">http://yourhost/cgi-bin/test-cgi.bat </A></P>
  28. <P></P>
  29. <HR>
  30. <P>This is a request for a script with extra path information, and no query.</P>
  31. <P><A HREF="/winhttpd/cgi-dos/test-cgi.bat/extra/path">http://yourhost/cgi-bin/test-cgi.bat/extra/path </A></P>
  32. <P></P>
  33. <HR>
  34. <P>This is a request for a script with no extra path information, and an ISINDEX query. </P>
  35. <P><A HREF="/winhttpd/cgi-dos/test-cgi.bat?query">http://yourhost/cgi-bin/test-cgi.bat?query </A></P>
  36. <P></P>
  37. <HR>
  38. <P>This is a request for a script with extra path information as well as an ISINDEX query. </P>
  39. <P><A HREF="/winhttpd/cgi-dos/test-cgi.bat/extra/path?a+query">http://yourhost/cgi-bin/test-cgi.bat/extra/path?a+query </A></P>
  40. <P></P>
  41. <HR>
  42. <P>You'll need a browser which supports HTML forms for this example. Clicking the submit button 
  43. will send an form request with no extra path information using the GET method. </P>
  44. <P></P>
  45. <FORM ACTION="/winhttpd/cgi-dos/test-cgi.bat" METHOD="GET">
  46. <P><INPUT TYPE=CHECKBOX NAME="button" VALUE="on"> Press me. </P>
  47. <P><INPUT TYPE=SUBMIT VALUE="Submit"> </P>
  48. <P></P>
  49. </FORM>
  50. <P></P>
  51. <HR>
  52. <P>You'll need a browser which supports HTML forms for this example. Clicking the submit button 
  53. will send an form request with no extra path information using the POST method. </P>
  54. <P></P>
  55. <FORM ACTION="/winhttpd/cgi-dos/test-cgi.bat" METHOD="POST">
  56. <P><INPUT TYPE=CHECKBOX NAME="button" VALUE="on">Press me. </P>
  57. <P><INPUT TYPE=SUBMIT VALUE="Submit"> </P>
  58. <P></P>
  59. </FORM>
  60. <P></P>
  61. <HR>
  62. <P>You'll need a browser which supports HTML forms for this example. Clicking the submit button 
  63. will send an form request with extra path information of /foo using the POST method. </P>
  64. <P></P>
  65. <FORM ACTION="/winhttpd/cgi-dos/test-cgi.bat/foo" METHOD="POST">
  66. <P><INPUT TYPE=CHECKBOX NAME="button" VALUE="on"> Press me. </P>
  67. <P><INPUT TYPE=SUBMIT VALUE="Submit"> </P>
  68. <P></P>
  69. </FORM>
  70. <P><A HREF="overview.htm"><IMG SRC="../../images/back.gif" ALIGN=bottom BORDER=2 WIDTH=40 HEIGHT=40> Return to the overview</A> </P>
  71. <P></P>
  72. <HR>
  73. <P>Copyright (C) 1995 Vermeer Technologies, Inc. All rights reserved. </P>
  74. </BODY>
  75.  
  76. </HTML>
  77.