4 * FastCGI example program using fcgi_stdio library
7 * Copyright (c) 1996 Open Market, Inc.
9 * See the file "LICENSE.TERMS" for information on usage and redistribution
10 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15 static const char rcsid[] = "$Id: tiny-fcgi.c,v 1.1 1997/09/16 15:36:28 stanleyg Exp $";
18 #include "fcgi_stdio.h"
28 while(FCGI_Accept() >= 0) {
29 printf("Content-type: text/html\r\n"
31 "<title>FastCGI Hello! (C, fcgi_stdio library)</title>"
32 "<h1>FastCGI Hello! (C, fcgi_stdio library)</h1>"
33 "Request number %d running on host <i>%s</i> "
35 ++count, getenv("SERVER_NAME"), getpid());