Print out content type : Content type « CGI Web « Python Tutorial






#!/usr/bin/env python

import cgi
form = cgi.FieldStorage()

name = form.getvalue('name', 'world')

print 'Content-type: text/plain'
print

print 'Hello, %s!' % name








22.5.Content type
22.5.1.Print out content type