2010-03-11 18:33:25 -04:00
|
|
|
#!/usr/bin/env python
|
2002-10-16 18:01:27 -03:00
|
|
|
|
|
|
|
"""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.
|
|
|
|
|
2002-10-17 13:33:40 -03:00
|
|
|
# If cgi0.sh works but cgi1.py doesn't, check the #! line and the file
|
2002-10-16 18:01:27 -03:00
|
|
|
# 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"
|