
The ECN No Name Newsletter is no longer being published. This is an archived issue.
[previous article]Kyler B. Laird
http://www.ecn.purdue.edu/WebTool/
These are common questions that Web programs that use the Common Gateway Interface (CGI) ask their callers. Because these functions are used so often, I wrote a utility, WEBTOOL, that makes writing CGI shell scripts easier.
WEBTOOL is a compilation of CGI utilities. WEBTOOL's behavior is determined by the flags it is given. For example, to find out who is calling your page (using the ident protocol), you would use webtool -ident WEBTOOL would then output lines like
After you've found out who has called your script and what they want, you can also use WEBTOOL to send some appropriate mail - either *to* you, the owner of the CGI script, or *from* you. Because WEBTOOL makes mail look as though it's from you or the user (instead of user "www"), replies can be made easily without changing the "To:" field.
For more information about WEBTOOL, use the URL http://www.ecn.purdue.edu/WebTool/.