(c) 2001-2002 Chris Warrington
** CGI is a program that you write. When the program receives a request by checking environment variables (i.e., by checking QUERY_STRING) the program generates html code and forms to be produced on the clients web browswer. **
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
A copy of GNU General Public License can be found in the file gpl.txt,
included in the archive.
The GNU General Public License allows you to USE this library in any of your programs,
but you MUST release the source code. If you modify this library, those changes must also
be released. Be sure to see gpl.txt for the legal mumbo-jumbo.
This file, unlike CGI_NEW.INC, is an object implementation of a CGI interface.
There are two sample scripts included with QCGI, "info.rqb" and "cgi_test.rqb".
The following read/write properties control how QCGI processes input. They should
be set before Parse or Get is called for the first time.
AutoConvert AS INTEGER (Default = 1)
If this is set to 1, QCGI will convert %xx tokens into their respective
MaxInput AS INTEGER (Default = 32767)
Determines how many characters QCGI will process
The following read-only properties allow you to access CGI environmental
Accept AS STRING
AuthType AS STRING
ContentLength AS INTEGER
ContentType AS STRING
Cookie AS STRING
GatewayInterface AS STRING
PathInfo AS STRING
PathTranslated AS STRING
Referer AS STRING
RemoteAddr AS STRING
RemoteHost AS STRING
RemoteIdent AS STRING
RemoteUser AS STRING
RequestMethod AS STRING
ScriptName AS STRING
ServerSoftware AS STRING
ServerName AS STRING
ServerPort AS INTEGER
ServerProtocol AS STRING
UserAgent AS STRING
Parses the input into name/value pairs
Get(name AS STRING, BYREF value AS STRING) AS INTEGER
Stores the value of the name/value pair "name" in "value". If Parse() has
not been called, it will call Parse(). If "name" is found, the return is 1; if not,
the return is 0. If "name" is not found, "value" is not modified.
If you find any bugs, need help, or have any suggestions, please e-mail me at