Home Services WebMail Forums Members Support Network Status Feedback
Contact Software Change Password Forums Frequently Asked Questions Access Numbers Signup
Signup
Access Numbers
Frequently Asked Questions
WebAgenda
Change Password
Software
Contact
Apoya DSL Libre
Ticket Center

 

 

 

 

UnCGI 1.9

Many existing software applications do not have built-in logic to decode the data passed by a form using the CGI POST or GET methods. The UnCGI utility decodes all the form fields and places them into environment variables for use by any application that can work with environment variables. It can be used from any program that can use environment variables including shell scripts, perl scripts, etc. UnCGI can even be embedded into a 'C' application as a library function. This program was written by Steven Grimm and released to the public domain. For additional documentation and source code visit the UnCGI web page.

Usage

The standard PRW.NET account setup places 'uncgi.cgi' on your cgi-bin directory. You should then place any scripts to be executed using UnCGI on the same directory. If you are using FTP, the hostname will be home.prw.net and the directory:

/home/username/html/cgi-bin

for personal accounts and

/home/domainname/cgi-bin

for business accounts. If you need to pass the fields of a form to a program called "myscript.cgi" via environment variables, set these form parameters:

METHOD=POST
ACTION=/cgi-bin/uncgi.cgi/myscript.cgi

Note that there is no "uncgi.cgi" subdirectory. UnCGI uses what is passed after the "/" on the URL to determine the script to be executed and any additional path information (if applicable). Attached is a basic form you can use an an example. To see how to use uncgi as a frontend to an operating system command press here. In case you want to test whether UnCGI is working properly, we have included a sample CGI script called 'env.cgi' that dumps your environment variuables. To use it, temporarily substitute the script you are running with:

ACTION=/cgi-bin/uncgi.cgi/env.cgi

To see how to use uncgi as a frontend to an operating system command press here. Note that if you want to use UnCGI embedded on a 'C' program, you will need its source code. If you have any questions or problems using UnCGI feel free to send us a message to support@prw.net .


Sample Form

This is an example of how UnCGI can be used to pass data from a form to a shell script or batch file. The example shell script will just echo the data back.

 

Contact Information

Name: Age:
Phone:
Email:

Enter your contact information to
test the UNCGI form.
To see the script press here.