commit d156a4e0babc2e290f3fe79a6d4a8fcf45455e01 Author: Meutel Date: Sun Dec 11 19:30:55 2016 +0100 Test env simple diff --git a/vars.c b/vars.c new file mode 100644 index 0000000..171b52c --- /dev/null +++ b/vars.c @@ -0,0 +1,19 @@ +#include +#include + +int +main(void) +{ + + puts("Status: 200 OK\r"); + puts("Content-Type: text/html\r"); + puts("\r"); + puts(""); + puts(""); + char * var = getenv("HTTP_HOST"); + if (var != NULL) + puts(var); + puts(""); + puts(""); + return(EXIT_SUCCESS); +}