topical media & game development
lib-ch-example-ref-wcgi.htm / htm
<!-- Copyright (c) 2001 SoftIntegration, Inc. All rights reserved. -->
<html>
<head>
<title>
Examples using Ch-CGI classes with wide characters
</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" vlink="#FF0000">
<h1 ALIGN=CENTER>
Examples using Ch-CGI classes with wide characters
</h1>
<BR><BR><HR>
<H3 id=content> Content </H3>
<LI><A HREF="#Request"> Member functions of class CRequest </A>
<LI><A HREF="#Response"> Member functions of class CResponse </A>
<LI><A HREF="#server"> Member functions of class CServer </A>
<LI><A HREF="#CCookie"> Member functions of class CCookie </A>
<BR><BR><HR>
<H3 id=Request> Member functions of class CRequest </H3>
<LI><A href="lib-ch-example-ref-wcgi-getCookies.cgi" TARGET="_top"> Request.getCookies </A>
<LI><A href="lib-ch-example-ref-wcgi-getCookie.cgi" TARGET="_top"> Request.getCookie </A>
<LI> Request.getForm
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-getForm.cgi" METHOD="post">
<p>Your first name: <input NAME="name" SIZE="48">
<p> <input TYPE="submit" value="Send" >
</form>
</code></UL>
<LI> Request.getForms
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-getForms.cgi" METHOD="post">
<p>Your first name: <input NAME="name" SIZE="48">
<p>What is your favorite ice cream flavor:
<select NAME="flavor" multiple>
<option selected>Vanilla </option>
<option>Strawberry </option>
<option>Chocolate </option>
<option>Rocky Road</option>
</select>
<p> <input TYPE="submit" value="Send">
</form>
</code></UL>
<LI> Request.getFormNameValue
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-getFormNameValue.cgi" METHOD="post">
<p>Your first name: <input NAME="name" SIZE="48">
<p>What is your favorite ice cream flavor:
<select NAME="flavor" multiple>
<option selected>Vanilla </option>
<option>Strawberry </option>
<option>Chocolate </option>
<option>Rocky Road</option>
</select>
<p> <input TYPE="submit" value="Send">
</form>
</code>
</UL>
<LI> Request.binaryRead and Request.getTotalBytes
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-binaryRead.cgi" METHOD="post">
<p>Your first name: <input NAME="name" SIZE="48">
<p>What is your favorite ice cream flavor:
<select NAME="flavor">
<option selected>Vanilla </option>
<option>Strawberry </option>
<option>Chocolate </option>
<option>Rocky Road </option>
</select>
<p> <input TYPE="submit" value="Send">
</form>
</code></UL>
<LI> Request.getServerVariable
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-getServerVariable.cgi/Ch_Test" METHOD="post">
<br>
Note:Be sure not to type extra space at the end of your server variable.
<br>
<p>Server Variable: <input NAME="serverVariable" SIZE="48">
<p>
<H5> The server variables can be ALL_HTTP ALL_RAW APPL_MD_PATH
APPL_PHYSICAL_PATH AUTH_PASSWORD AUTH_TYPE AUTH_USER CERT_COOKIE CERT_FLAGS CERT_ISSUER CERT_KEYSIZE CERT_SECRETKEYSIZE CERT_SERIALNUMBER CERT_SERVER_ISSUER CERT_SERVER_SUBJECT CERT_SUBJECT CONTENT_LENGTH CONTENT_TYPE GATEWAY_INTERFACE <br>
HTTP_<HeaderName> HTTP_ACCEPT HTTP_ACCEPT_LANGUAGE HTTP_USER_AGENT HTTP_COOKIE HTTP_REFERER HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE HTTPS_SERVER_ISSUER HTTPS_SERVER_SUBJECT INSTANCE_ID INSTANCE_META_PATH LOCAL_ADDR LOGON_USER PATH_INFO PATH_TRANSLATED QUERY_STRING REMOTE_ADDR REMOTE_HOST REMOTE_USER REQUEST_METHOD SCRIPT_NAME SERVER_NAME SERVER_PORT SERVER_PORT_SECURE SERVER_PROTOCOL SERVER_SOFTWARE URL. </H5>
<p> <input TYPE="submit" value="Send">
</form>
</code></UL>
<LI><A HREF="lib-ch-example-ref-wcgi-getForm.cgi?name=fred&flavor=Chocolate&flavor=Vanilla"> Request.getForm for GET request method </A>
<LI><A HREF="lib-ch-example-ref-wcgi-getForms.cgi?name=fred&flavor=Chocolate&flavor=Vanilla"> Request.getForms for GET request method </A>
<LI><A HREF="lib-ch-example-ref-wcgi-getFormNameValue.cgi?name=fred&fav=Chocolate&fav=Vanilla"> Request.getFormNameValue for GET request method </A>
<BR><BR><HR>
<H3 id=Response> Member functions of class CResponse </H3>
<LI><A HREF="lib-ch-example-ref-wcgi-addCookie.cgi" TARGET="_top"> Response.addCookie </A>
<LI><A HREF="lib-ch-example-ref-wcgi-addHeader.cgi"> Response.addHeader </A>
<LI><A HREF="lib-ch-example-ref-wcgi-exit.cgi" TARGET="_top"> Response.exit </A>
<LI><A HREF="lib-ch-example-ref-wcgi-flush.cgi" TARGET="_top"> Response.flush </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setBuffer.cgi" TARGET="_top"> Response.getBuffer </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setCacheControl.cgi" TARGET="_top"> Response.getCacheControl </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setCharSet.cgi" TARGET="_top"> Response.getCharSet </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setContentType.cgi" TARGET="_top"> Response.getContentType </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setExpires.cgi" TARGET="_top"> Response.getExpires </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setExpiresAbsolute.cgi" TARGET="_top"> Response.getExpiresAbsolute </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setStatus.cgi" TARGET="_top"> Response.getStatus </A>
<LI><A HREF="lib-ch-example-ref-wcgi-PICS.cgi" TARGET="_top"> Response.PICS </A>
<LI><A HREF="lib-ch-example-ref-wcgi-redirect.cgi" TARGET="_top"> Response.redirect </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setBuffer.cgi" TARGET="_top"> Response.setBuffer </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setCacheControl.cgi" TARGET="_top"> Response.setCacheControl </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setCharSet.cgi" TARGET="_top"> Response.setCharSet </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setContentType.cgi" TARGET="_top"> Response.setContentType </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setExpires.cgi" TARGET="_top"> Response.setExpires </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setExpiresAbsolute.cgi" TARGET="_top"> Response.setExpiresAbsolute </A>
<LI><A HREF="lib-ch-example-ref-wcgi-setStatus.cgi" TARGET="_top"> Response.setStatus </A>
<BR><BR><HR>
<H3 id=Server> Member functions of class CServer </H3>
<LI>Server.HTMLEncode
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-HTMLEncode.cgi" METHOD="post">
<p>Your HTML for Encode: <br>
<input NAME="HTMLToEncode" value="< >" SIZE="48">
<p> <input TYPE="submit" value="Send">
</form> </code></UL>
<LI>Server.mapPath
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-mapPath.cgi" METHOD="post">
<p>Your path to map: <br>
<input NAME="mapPath" value="/" SIZE="48">
<p> <input TYPE="submit" value="Send">
</form></code> </UL>
<LI>Server.URLEncode
<UL><code>
<form ACTION="lib-ch-example-ref-wcgi-URLEncode.cgi" METHOD="post">
<p>Your URL for Encode: <br>
<input NAME="URLToEncode" value="http://www.example.com" SIZE="48">
<p> <input TYPE="submit" value="Send">
</form></code> </UL>
<BR><BR><HR>
<H3 id=CCookie> Member functions of class CCookie </H3>
<LI> Refer to <A HREF="lib-ch-example-ref-wcgi-addCookie.cgi" TARGET="_top"> Response.addCookie </a>
and
<A href="lib-ch-example-ref-wcgi-getCookie.cgi" TARGET="_top"> Request.getCookie </A>
</body>
</html>
(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.