Add cookie stuff
[matches/MCTX3420.git] / testing / cookie-test / test.c
1 #include <fcgi_stdio.h>
2 #include <stdlib.h>
3 int main() {
4         while (FCGI_Accept() >= 0) {
5                 printf("Content-type: text\r\n");
6                 printf("Set-Cookie: name=value with spaces; and a semicolon\r\n");
7                 printf("Set-Cookie: name2=value2\r\n\r\n");
8                 printf("Cookie:%s\n", getenv("COOKIE_STRING"));
9         }
10 }

UCC git Repository :: git.ucc.asn.au