This article provides a short CGI program that can print every environment variable it knows.
More Tutorials