#!/usr/bin/env python3 """CGI test 2 - basic use of cgi module.""" import cgitb; cgitb.enable() import cgi def main(): form = cgi.FieldStorage() print("Content-type: text/html") print() if not form: print("
", cgi.escape(key), ":", cgi.escape(value)) if __name__ == "__main__": main()