Staging
v0.5.1
https://github.com/python/cpython
Revision 62fbdd9b7b8eea80842acd63a425242452aa4e61 authored by Hirokazu Yamamoto on 07 November 2010, 02:45:19 UTC, committed by Hirokazu Yamamoto on 07 November 2010, 02:45:19 UTC
1 parent 51d2fd9
Raw File
Tip revision: 62fbdd9b7b8eea80842acd63a425242452aa4e61 authored by Hirokazu Yamamoto on 07 November 2010, 02:45:19 UTC
Formatted code. (Tabify, etc)
Tip revision: 62fbdd9
cgi1.py
#!/usr/bin/env python3

"""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 doesn't, 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")
back to top