topical media & game development
lib-ch-example-ref-wcgi-setExpiresAbsolute.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <wcgi.h>
int main() {
class CResponse Response;
chchar *expiresAbsolute_def, *expiresAbsolute_cur;
// get the default value of the ExpiresAbsolute
expiresAbsolute_def = Response.getExpiresAbsolute();
// put the new value of the ExpiresAbsolute
Response.setExpiresAbsolute(L"Monday, 17-Dec-2001 14:02:40 GMT");
// get current value of the ExpiresAbsolute
expiresAbsolute_cur = Response.getExpiresAbsolute();
Response.begin();
Response.title(L"Test of Response.setExpiresAbsolute and Response.getExpiresAbsolute");
printf("<H1> Test of Response.setExpiresAbsolute and Response.getExpiresAbsolute </H1>
\n");
printf("The default value of the ExpiresAbsolute is : ");
fputws(expiresAbsolute_def ? expiresAbsolute_def : L"(null)", stdout);
printf(" \%s <br>\n");
printf("The current value of the ExpiresAbsolute is : ");
fputws(expiresAbsolute_cur ? expiresAbsolute_cur : L"(null)", stdout);
printf(" \%s <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.