home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / ftpage / disk6 / intro.ht_ / intro.ht
Encoding:
Text File  |  1995-09-07  |  3.0 KB  |  72 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>Introduction to the Common Gateway Interface</TITLE>
  7. <META NAME="GENERATOR" CONTENT="Vermeer FrontPage 1.0">
  8. </HEAD>
  9.  
  10. <BODY>
  11. <H1>Introduction to the CGI</H1>
  12. <P><I>Taken from the Unix CGI documentation at NCSA. This is somewhat outdated, and applies ONLY to the DOS type 
  13. CGI interface of Windows httpd.</I> </P>
  14. <HR>
  15. <H2>What is it?</H2>
  16. <P>The Common Gateway Interface, or CGI, is an interface for running external programs, or gateways, under an information 
  17. server. Currently, the supported information servers are HTTP servers. </P>
  18. <P></P>
  19. <HR>
  20. <H2>What's a gateway used for?</H2>
  21. <P>What we refer to as gateways are really programs which handle information requests and return the appropriate document 
  22. or generate a document on the fly. With CGI, your server can serve information which is not in a form readable by the client 
  23. (such as an SQL database), and act as a gateway between the two to produce something which clients can use. </P>
  24. <P>Gateways can be used for a variety of purposes, the most common being the handling of ISINDEX and FORM requests 
  25. for HTTP. </P>
  26. <P>Some examples of the uses of CGI on Unix hosts: </P>
  27. <P></P>
  28. <UL>
  29. <LI>Converting your system's manual pages into HTML on the fly and sending the HTML result to the client. </LI>
  30. <LI>Interfacing with WAIS and archie databases, converting the results to HTML and sending the result to the client. </LI>
  31. <LI>Allowing user feedback about your server through an HTML form and an accompanying CGI decoder. </LI>
  32. </UL>
  33. <HR>
  34. <H2>What exactly are gateway programs?</H2>
  35. <P>Gateway programs, or scripts, are executable programs which can be run by themselves (but you wouldn't want to). They 
  36. have been made external programs in order to allow them to run under various (possibly very different) information servers 
  37. interchangably. </P>
  38. <P></P>
  39. <HR>
  40. <H2>What language can I write these gateways in?</H2>
  41. <P>Gateways conforming to this specification can be written in any language which produces an executable file (including shell 
  42. scripts). Some of the more popular languages to use include: </P>
  43. <P></P>
  44. <UL>
  45. <LI>C/C++ </LI>
  46. <LI>PERL </LI>
  47. <LI>TCL </LI>
  48. <LI>The Bourne Shell </LI>
  49. <LI>The C Shell </LI>
  50. <LI>The DOS command interpreter or 3rd-party enhanced interpreters such as Norton NDOS </LI>
  51. </UL>
  52. <P>There are many others. </P>
  53. <P></P>
  54. <HR>
  55. <H2>Who came up with it?</H2>
  56. <P>The specification was discussed between the main HTTP server authors. Credits go to: </P>
  57. <P></P>
  58. <UL>
  59. <LI>Tony Sanders <EM>sanders@bsdi.com</EM> </LI>
  60. <LI>Ari Luotonen <EM>luotonen@ptsun00.cern.ch</EM> </LI>
  61. <LI>George Phillips <EM>phillips@cs.ubc.ca</EM> </LI>
  62. <LI>John Franks <EM>john@math.nwu.edu</EM> </LI>
  63. </UL>
  64. <P>as well as countless others. </P>
  65. <P><A HREF="overview.htm"><IMG SRC="../../images/back.gif" ALIGN=bottom BORDER=2 WIDTH=40 HEIGHT=40> Return to the overview</A> </P>
  66. <P></P>
  67. <HR>
  68. <P>Copyright (C) 1995 Vermeer Technologies, Inc. All rights reserved. </P>
  69. </BODY>
  70.  
  71. </HTML>
  72.