How to use the CGITEST example?
The CGITEST example shows how to create Prolog applications that can be used as CGI
programs, how to receive, examine and decode requests at the Web server and how to
generate dynamic HTML pages.
To run this example you need a server to be installed and a WEB browser that supports
forms (e.g., Internet Explorer 4.0, Netscape Navigator 4.x, etc.)
We have tested this example under Microsoft Personal WEB Server and under Microsoft
Internet Information Server.
To use the CGITEST example you need to fulfil the following steps:
- Load CgiTest example into Visual Prolog VDE.
- In the Application Expert choose Other Options tab.
Click Project Directories and then choose Output tab.
You will see that CgiTest.exe file will be placed into ..\ WWW\INETPUB\CGITEST directory.
- Build the project.
- Copy CgiTest.exe together with CgiTest.htm from www\inetpub\CgiTest directory into your
server directory (e.g., ..\inetpub\wwwroot\CgiTest for the Microsoft Personal WEB Server).
- There are several ways to provide the possibility to run executables from a server
CGITEST directory.
For example, you can use File|Properties menu command in the Windows Explorer or Windows
Commander to invoke the Properties dialog for this directory.
Choose WEB Sharing tab and check Share this directory checkbox. In the Edit Alias dialog
check all checkboxes.
- Start a browser.
- Load CgiTest.HTM, and you will see how the example works.
