You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ks...@apache.org on 2012/03/20 21:49:56 UTC

svn commit: r1303140 - /incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi

Author: kschenk
Date: Tue Mar 20 20:49:56 2012
New Revision: 1303140

URL: http://svn.apache.org/viewvc?rev=1303140&view=rev
Log:
kls -- add a test cgi


Added:
    incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi   (with props)

Added: incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi?rev=1303140&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi (added)
+++ incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi Tue Mar 20 20:49:56 2012
@@ -0,0 +1,15 @@
+#! /usr/bin/perl -w
+
+print "Content-type: text/html\n\n";
+
+print<< "TOP";
+<html>
+<head><title>cgi test</title><head>
+<body>
+<h2>Env variables as seen by httpd</h2>
+TOP
+
+foreach $key (sort keys %ENV) {
+	print "$key: $ENV{$key}<br>\n";
+}
+print "</body></html>\n";

Propchange: incubator/ooo/ooo-site/trunk/cgi-bin/env.cgi
------------------------------------------------------------------------------
    svn:executable = *