Find this at http://www.npac.syr.edu/users/gcf/ecs400spring97/ecs400cgi/

Introduction to CGI Programming

Given by Nancy J. McCracken at ECS400 Spring 97 Senior Undergraduate Course on Spring Semester 97. Foils prepared 11 May 1997

CGI is the Common Gateway Interface and is the scheme to interface other programs and systems to the HTTP Web protocol, using the same data protocols as the HTTP clients and servers.
In this section, we will cover
  • passing information from the web page to the CGI script
  • processing information on the server and returning formatted web pages back to the web client
  • an example using Perl as the scripting language
  • brief descriptions of other CGI capabilities
References:
  • HTML and CGI Unleashed, John December and Mark GInsburg, chapters 19, 20 and 21, Sams.net Publishing.
  • CGI Programming on the World Wide Web, Gundavaram, O'Reilly & Associates.
  • The CGI Book, William Weinman, New Riders Publishing.
  • Web documents.


Table of Contents for Introduction to CGI Programming


001 CGI Programming
    with Advanced Topics
002 CGI Programming
003 The Flow of Data amongst the Client, Server and CGI Script
004 The Flow of Data amongst the Client, Server and CGI Script
005 Example form for Hello, World!
006 Example CGI program in Perl for Hello, World!
007 Pass Data to a CGI Program through Environment Variables
008 Another way to pass data through environment variables
009 Other Information in environment variables
010 Passing data as Standard Input to the CGI program
011 Perl subprogram to read input from web forms - Part I
012 Perl subprogram - Part II
013 CGI Program Output:  the response to the web server
014 Some CGI programming practical tips
015 More practical tips
016 Password Protection on HTML Documents
017 Example protection files
018 Dynamic Web Pages --- Server Push
019 A Server-Push Animation
020 Server-Push Animation, cont.
021 Multiple-Block GIF Files (Animated GIFs)
022 Dynamic Web Pages --- Client Pull
023 Maintaining State with Hidden Fields
024 Hidden Fields in a "Shopping Basket"
025 Finishing the "Shopping Basket"
026 Maintaining State with Netscape Cookies
027 Setting up a cookie
028 Retrieving a cookie
029 Server Side Includes (SSI)
030 Some SSI Commands


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Aug 21 1997