topical media & game development
lib-ch-example-ref-wcgi-URLEncode.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <stdio.h>
include <wcgi.h>
int main() {
class CResponse Response;
class CRequest Request;
class CServer Server;
chchar *value;
Response.begin();
Response.title(L"The Result of Server.URLEncode</title> \n");
printf("<H1> The Result of Server.HTMLEncode</H1>\n ");
value = Request.getForm(L"URLToEncode");
if (value != NULL)
fputws(Server.URLEncode(value), stdout);
else
printf("Please input the URL for encode first \n <br>");
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.