summaryrefslogtreecommitdiffstats
path: root/Demo/cgi/cgi1.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-10-16 21:01:27 (GMT)
committerGuido van Rossum <guido@python.org>2002-10-16 21:01:27 (GMT)
commit68077210c2588241fc5e4e16d83c083fa4103108 (patch)
tree118f4313ced095fd6b640ac6f9133e216692e2a5 /Demo/cgi/cgi1.py
parent60a5d72908a8422d15452356892fe592c80dad33 (diff)
downloadcpython-68077210c2588241fc5e4e16d83c083fa4103108.zip
cpython-68077210c2588241fc5e4e16d83c083fa4103108.tar.gz
cpython-68077210c2588241fc5e4e16d83c083fa4103108.tar.bz2
Some really simple cgi examples. cgi3 is a MiniWiki.
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"