-------------------
CGI4VB version 1.4
-------------------
 * CGI interface written in Visual Basic 4 (32-bit).
 * Will work with any standard 32-bit web server
 * Does not require a winHttpd-compliant server. 
 * Uses STDIN and STDOUT to communicate between server and cgi program.
 * Does not use temp files.
 * Supports both the POST and the GET methods.
 
To test CGI4VB:

1. Load the project file "sample/sample.vbp" into VB4 - 32bit
2. Create CGI4VB.EXE, and put it in your server's CGI-BIN directory
3. Test by using CGI4VB.HTM

To create your own CGI programs, replace SAMPLE.BAS with your own routine.
-------------------------------------------------------------------------
			PROBLEMS?

If you have problems, please 
	read the enclosed "Problems.txt"
	make an effort to solve it yourself
        read the comments in the source code

If all else fails, feel free to contact me, but include:
        a description of the problem and any error messages
	version of CGI4VB that you're using
	http server and version
	browser and version
	steps you've already taken to try to resolve the problem
 
-------------------------------------------------------------------------

directories in the zip file include:
------------------------------------

CGI4VB   - the engine, debugger, other modules
SAMPLE   - sample program - try this first
CGI4env  - env variables  - displays the server's environment variables
CGI4cntr - page counter   - execute from an <IMG> tag  
CGI4time - digital clock  - execute from an <IMG> tag    
Imagemap - redirection    - server-side imagemap using the Location: header
CGI4upld - file upload    - multipart headers (for newer browsers)
HTML     - HTML pages for above programs
ICONS    - Gif files
MAPS     - map files for imagemap
---------------------
Notes on version 1.4
---------------------
Minor code changes to cgi4vb.bas
Added cgiDEBUG - degugging module: instructions are in cgi4vb/cgidebug.bas
Added VBP files for the demo programs
Added functions/capabilities to cgi4rtn.bas
Added Words.bas  - more Rexx-inspired text handling functions
Added imagemap   - use this if your server doesn't supply an imagemap pgm.
Removed cgi4red  - the imagemap program shows how to use redirection

---------------------
Notes on version 1.3
---------------------
Query strings can be used in addition to posted data, instead of either/or. 
Posted data is checked for content-type before attempting to decode it.
Added all standard environment variables per CGI/1.1 specs
Passing sEncoded to urlDecode ByVal to preserve encoded data
Created separate function for storing name/value pairs
tPairs() is handled a little differently to allow adding to it dynamically

What header to use depends on what server you're running
"Status: 200 OK"   - works with most
"HTTP/1.0 200 OK"  - works with some
none               - works with some

---------------------
Notes on version 1.2
---------------------
Added SendHeader() and SendFooter() subs to simplify coding.  
Form names are being decoded.
sFormData is now a public variable, and can be accessed from any module.
Decoding is done in a separate function: urlDecode().

Replaced the "HTTP/1.0 200 OK" header with "Status: 200 OK"
The former does not work with certain servers.
The latter should work with all servers.

--------------------
Kevin O'Brien  December 16, 1996
<obrienk@pobox.com>
<obrienk@ix.netcom.com>

http://www.pobox.com/~obrienk   <=== check here for latest version of CGI4VB
http://www.netcom.com/~obrienk  <=== or here 
