/Demo/cgi/cgi1.py

http://unladen-swallow.googlecode.com/ · Python · 14 lines · 4 code · 4 blank · 6 comment · 0 complexity · e0c77d74cdd0889f3123f66f94fb2f06 MD5 · raw file

  1. #!/usr/local/bin/python
  2. """CGI test 1 - check server setup."""
  3. # Until you get this to work, your web server isn't set up right or
  4. # your Python isn't set up right.
  5. # If cgi0.sh works but cgi1.py doesn't, check the #! line and the file
  6. # permissions. The docs for the cgi.py module have debugging tips.
  7. print "Content-type: text/html"
  8. print
  9. print "<h1>Hello world</h1>"
  10. print "<p>This is cgi1.py"