Source code for: 'tutor0.py'


#!/usr/bin/python
"""
runs on the server, prints HTML to create a new page;
url=http://localhost/cgi-bin/tutor0.py
"""

print('Content-type: text/html\n')
print('<TITLE>CGI 101</TITLE>')
print('<H1>A First CGI Script</H1>')
print('<P>Hello, CGI World!</P>')
print('<hr><a href="/cgi-bin/getfile.py?filename=tutor0.py">View script code</a>')