X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=testing%2Fcookie-test%2Ftest.c;fp=testing%2Fcookie-test%2Ftest.c;h=7f8823924b70e3f31e48a843a0770e70b999e051;hb=911cb352c2a2bd7fd6edf481a623440dd8f96b76;hp=0000000000000000000000000000000000000000;hpb=392f914073006fea9e03d2e13a3e8e6c519694c1;p=matches%2FMCTX3420.git diff --git a/testing/cookie-test/test.c b/testing/cookie-test/test.c new file mode 100644 index 0000000..7f88239 --- /dev/null +++ b/testing/cookie-test/test.c @@ -0,0 +1,10 @@ +#include +#include +int main() { + while (FCGI_Accept() >= 0) { + printf("Content-type: text\r\n"); + printf("Set-Cookie: name=value with spaces; and a semicolon\r\n"); + printf("Set-Cookie: name2=value2\r\n\r\n"); + printf("Cookie:%s\n", getenv("COOKIE_STRING")); + } +}