Print out content type : Content type : CGI Web PYTHON TUTORIALS


PYTHON TUTORIALS » CGI Web » Content type »

 

Print out content type


#!/usr/bin/env python

import cgi
form = cgi.FieldStorage()

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

print 'Content-type: text/plain'
print

print 'Hello, %s!' % name



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo CGI Web
» Content type