4 #ifdef HAVE_FASTCGI_FASTCGI_H
5 #include <fastcgi/fcgi_stdio.h>
7 #include <fcgi_stdio.h>
16 while (num_requests
> 0 &&
20 if (NULL
!= (p
= getenv("QUERY_STRING"))) {
21 if (0 == strcmp(p
, "lf")) {
22 printf("Status: 200 OK\n\n");
23 } else if (0 == strcmp(p
, "crlf")) {
24 printf("Status: 200 OK\r\n\r\n");
25 } else if (0 == strcmp(p
, "slow-lf")) {
26 printf("Status: 200 OK\n");
29 } else if (0 == strcmp(p
,"slow-crlf")) {
30 printf("Status: 200 OK\r\n");
33 } else if (0 == strcmp(p
, "die-at-end")) {
34 printf("Status: 200 OK\r\n\r\n");
37 printf("Status: 200 OK\r\n\r\n");
40 printf("Status: 500 Internal Foo\r\n\r\n");
43 if (0 == strcmp(p
, "path_info")) {
44 printf("%s", getenv("PATH_INFO"));
45 } else if (0 == strcmp(p
, "script_name")) {
46 printf("%s", getenv("SCRIPT_NAME"));
47 } else if (0 == strcmp(p
, "var")) {
48 p
= getenv("X_LIGHTTPD_FCGI_AUTH");
49 printf("%s", p
? p
: "(no value)");
54 if (0 == num_requests
) FCGI_Finish();