
Harbour CGI Experiment
----------------------

1. Unzip this package at c:\mongoose

2. Run mongoose-tiny-4.1.exe

3. Go to src folder and type:

	build hello

   'build.bat' assumes that you have Harbour installed at c:\harbour

4. Open your browser and type 127.0.0.1:8080/cgi-bin/hello.cgi

5. If you want to make accessible your application from the Internet:
   
   a). you must to forward the port 8080 (on you router) to the IP of the 
   machine running the server (you can find it with IPCONFIG command). 

   b). Then you must find your public IP address (you could go to 
   http://www.whatsmyip.org/ to get it). 

   c). Your application will be online at: 

       <your_public_address>:8080/cgi-bin/hello.cgi


Notes:

   - The application generated at '3' is a simple .exe that is renamed to .cgi
   That is done because security reasons, since configure the server to run exe
   files could be dangeous.

   - The application generated is a standard Harbour application (excepting by the GT driver) 
   so, you can use any library you want with it.

   - To make it work on Linux, no source code modifications are required. You only must to
   recompile your sources using Harbour for Linux and put your application binaries at
   cgi-bin folder of the server 


Regards,

Roberto.