The OWTCGIEnv class

The OWTCGIEnv class

The OWTCGIEnv class provides a simple interface to access the CGI FORM parameters and CGI environment variables. It handles both POST and GET methods, etc.

Table of Contents

How to use the OWTCGIEnv class

The class automatically handles the parsing or the QUERY data. The object is ready to use as soon as it is created, but the actual parsing happens only the first time you attemps to access one of the form parameter values.

You will usually create an instance of a OWTCGIEnv object at the beginning of the main() function of your application, and the object destructor will automatically take care of cleaning up any resources used by the object when the main() function exits.

OWTCGIEnv class methods

Other Alternatives

The OWTCGIEnv class should be sufficient to satisfy most application needs. If you need a more complete CGI interface, you have the choice of either improving the OWTCGIEnv class, or turning to another (more complete) CGI interface available in source form.

You can have a look at:


OWT Page


Last Update: November 26, 1998
Daniel Morissette, morissette@dmsolutions.ca