diff --git a/t/t-cgi.c b/t/t-cgi.c deleted file mode 100644 index a6ae6d8..0000000 --- a/t/t-cgi.c +++ /dev/null @@ -1,33 +0,0 @@ -#include -#include -#include -#include -#include - -int main () -{ - time_t current_time; - size_t i; - static const char* var[] = - { - "REQUEST_METHOD", - "REQUEST_URI", - "QUERY_STRING", - "REMOTE_ADDR", - "REMOTE_PORT", - "CONTENT_LENGTH" - }; - - printf("Content-type: text/plain\r\n\r\n"); - printf("C Program Version\n"); - current_time = time(NULL); - printf("It is now %s\n", ctime(¤t_time)); - - for (i = 0; i < sizeof(var) / sizeof(var[0]); i++) - { - printf ("%s:%s\n", var[i], getenv(var[i])); - } - - fflush(stdout); - exit (0); -}