QCGI.INC ©2001-2005 Chris Warrington rapidq.basic.c45207@spamgourmet.com Version: 1.6 Date: 2005-FEB-22 ======== License ] ======== 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. ==== Use ] ==== 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". QCGI Properties --------------- 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 characters. MaxInput AS INTEGER (Default = 32767) Determines how many characters QCGI will process The following read-only properties allow you to access CGI environmental variables. 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 QCGI Methods ------------ Parse() 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. ======== Contact ] ======== If you find any bugs, need help, or have any suggestions, please e-mail me at rapidq.basic.c45207@spamgourmet.com