Mega Code Archive

 
Categories / Python Tutorial / CGI Web
 

Programming Web Services

#!/usr/bin/python #Send header to browser print "Content-type: text/html\n" print "<title>CGI Text</title>\n" webText = """ <li><a href="http://www.python.org"> Python Web Site</a></li> <li><a href="http://docs.python.org"> Python Documentation</a></li> <li><a href="http://cheeseshop.python.org"> Cheeseshop</a> </li> """ print webText