4 #ifdef HAVE_FASTCGI_FASTCGI_H
5 #include <fastcgi/fcgi_stdio.h>
7 #include <fcgi_stdio.h>
14 while (FCGI_Accept() >= 0) {
16 /* Status: 200 OK to allow access is implied
17 * if Status header is not included in response */
19 char *p
= getenv("QUERY_STRING");
20 if (p
!= NULL
&& 0 == strcmp(p
, "var")) {
21 printf("Variable-X-LIGHTTPD-FCGI-AUTH: LighttpdTestContent\r\n");
22 } else if (p
== NULL
|| 0 != strcmp(p
, "ok")) {
23 printf("Status: 403 Forbidden\r\n");