From 8b2630a82fbecfd57fa38aebb397a755936690e5 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Fri, 18 Sep 2015 15:15:18 +0000 Subject: add README to point to lighttpd-1.4.x as stable git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/fcgi-responder.c | 63 -------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 tests/fcgi-responder.c (limited to 'tests/fcgi-responder.c') diff --git a/tests/fcgi-responder.c b/tests/fcgi-responder.c deleted file mode 100644 index 41707d33..00000000 --- a/tests/fcgi-responder.c +++ /dev/null @@ -1,63 +0,0 @@ -#include "config.h" -#ifdef HAVE_FASTCGI_FASTCGI_H -#include -#else -#include -#endif -#include -#include -#include - -int main () { - int num_requests = 2; - - while (num_requests > 0 && FCGI_Accept() >= 0) { - char* p = NULL; - char* doc_root = NULL; - char fname[4096]; - char* pfname = (char *)fname; - - doc_root = getenv("DOCUMENT_ROOT"); - p = getenv("QUERY_STRING"); - - if (NULL != p && NULL != doc_root) { - snprintf(pfname, sizeof(fname), "%s/phpinfo.php", doc_root); - if (0 == strcmp(p, "lf")) { - printf("Status: 200 OK\n\n"); - } else if (0 == strcmp(p, "crlf")) { - printf("Status: 200 OK\r\n\r\n"); - } else if (0 == strcmp(p, "slow-lf")) { - printf("Status: 200 OK\n"); - fflush(stdout); - printf("\n"); - } else if (0 == strcmp(p,"slow-crlf")) { - printf("Status: 200 OK\r\n"); - fflush(stdout); - printf("\r\n"); - } else if (0 == strcmp(p,"x-lighttpd-send-file")) { - printf("Status: 200 OK\r\n"); - printf("X-LIGHTTPD-send-file: %s\r\n", pfname); - printf("\r\n"); - } else if (0 == strcmp(p,"xsendfile")) { - printf("Status: 200 OK\r\n"); - printf("X-Sendfile: %s\r\n", pfname); - printf("\r\n"); - } else if (0 == strcmp(p,"xsendfile-mixed-case")) { - printf("Status: 200 OK\r\n"); - printf("X-SeNdFiLe: %s\r\n", pfname); - printf("\r\n"); - } else if (0 == strcmp(p, "die-at-end")) { - printf("Status: 200 OK\r\n\r\n"); - num_requests--; - } else { - printf("Status: 200 OK\r\n\r\n"); - } - } else { - printf("Status: 500 Internal Foo\r\n\r\n"); - } - - printf("test123"); - } - - return 0; -} -- cgit v1.2.1