/* * tiny-cgi.c -- * * CGI example program * * * Copyright (c) 1996 Open Market, Inc. * * See the file "LICENSE.TERMS" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * */ #ifndef lint static const char rcsid[] = "$Id: tiny-cgi.c,v 1.6 1996/10/30 14:38:25 mbrown Exp $"; #endif /* not lint */ #include #include void main(void) { int count = 0; printf("Content-type: text/html\r\n" "\r\n" "CGI Hello!" "

CGI Hello!

" "Request number %d running on host %s\n", ++count, getenv("SERVER_NAME")); }