mirror of
https://github.com/python/cpython.git
synced 2025-10-23 18:03:48 +00:00
15 lines
394 B
Python
15 lines
394 B
Python
|
|
#!/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"
|