topical media & game development
lib-ch-example-ref-wcgi-getCookies.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <wcgi.h>
int main()
{
class CCookie *pck;
class CResponse Response;
class CRequest Request;
int i, count;
Response.begin();
Response.title(L"Test of Request.getCookies");
printf("<H1> Test of Request.getCookies </H1>
\n");
//get Cookie
count = Request.getCookies(&pck);
for(i=0; i < count; i++) {
fputws(pck[i].getName(), stdout);
printf(" = ");
fputws(pck[i].getValue(), stdout);
printf(" <br>\n");
}
Response.end();
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.