summaryrefslogtreecommitdiffstats
path: root/Demo/cgi/cgi1.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/cgi/cgi1.py')
-rwxr-xr-xDemo/cgi/cgi1.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Demo/cgi/cgi1.py b/Demo/cgi/cgi1.py
new file mode 100755
index 0000000..5dd7d2c
--- /dev/null
+++ b/Demo/cgi/cgi1.py
@@ -0,0 +1,14 @@
+#!/usr/local/bin/python
+
+"""CGI test 1 - check server setup."""
+
+# Until you get this to work, your web server isn't set up right or
+# your Python isn't set up right.
+
+# If cgi0.sh works but cgi1.py, check the #! line and the file
+# permissions. The docs for the cgi.py module have debugging tips.
+
+print "Content-type: text/html"
+print
+print "<h1>Hello world</h1>"
+print "<p>This is cgi1.py"