#!/usr/bin/python

import os

print "Content-type: text/html" # identify response as HTML
print # end of headers

print "<html><head><title>Test CGI</title></head>"
print "<body>"
print "<h1>Hello CGI World!</h1>"
print "<pre>"
for x,y in os.environ.items():
    print x, ":", y
print "</pre>"
print "</body>"
print "</html>"
