]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Demo/cgi/cgi1.py
AppPkg/Applications/Python: Add Python 2.7.2 sources since the release of Python...
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Demo / cgi / cgi1.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Demo/cgi/cgi1.py b/AppPkg/Applications/Python/Python-2.7.2/Demo/cgi/cgi1.py
new file mode 100644 (file)
index 0000000..3a0c604
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python\r
+\r
+"""CGI test 1 - check server setup."""\r
+\r
+# Until you get this to work, your web server isn't set up right or\r
+# your Python isn't set up right.\r
+\r
+# If cgi0.sh works but cgi1.py doesn't, check the #! line and the file\r
+# permissions.  The docs for the cgi.py module have debugging tips.\r
+\r
+print "Content-type: text/html"\r
+print\r
+print "<h1>Hello world</h1>"\r
+print "<p>This is cgi1.py"\r