topical media & game development
lib-ch-example-ref-cgi-addHeader.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <cgi.h>
int main() {
class CResponse Response;
chchar *headerName="Content-Disposition";
chchar *headerValue = "attachment; filename=\"test addHeader.ch, please click cancel\"";
Response.setContentType("application/testaddHeader");
Response.addHeader(headerName, headerValue);
Response.begin();
Response.title("Test of Response.addHeader");
printf("<H1> Test of Response.addHeader</H1>
\n");
printf("The header has been sent to the client.");
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.