If you are currently reading in local file mode, start your server now, then click here to switch to client-server mode. This same document might appear shortly...
If you got an error message, then "localhost" cannot be used to access your local server (my package fails on this, by the way). Edit this document, which is (typically):
c:\httpd\htdocs\httpddoc\info\cgi\examples.htmwith a text editor, and replace the HREF URL reference to "localhost" with the actual domain hostname or IP address of your system, then try again.
If you made it this far, you're ready to try the scripts. Strictly speaking, it wouldn't have been necessary to switch to client-server mode, the URLs for the script examples would make the connection via the network even from local file mode. However, I wanted to make sure you had your server running and were able to communicate with it. If you are interested, you should look at the source for the CGI script used in these examples.
For more source of CGI scripts, see the CGI
archive of scripts people have written. In addition, see the
NCSA httpd distribution in the
cgi-src
directory.
http://yourhost/cgi-bin/test-cgi.bat
http://yourhost/cgi-bin/test-cgi.bat/extra/path
http://yourhost/cgi-bin/test-cgi.bat?query
http://yourhost/cgi-bin/test-cgi.bat/extra/path?a+query
Robert B. Denny <rdenny@netcom.com>