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