CGI

From Omnia
Jump to navigation Jump to search

Content Type

Start all HTML output with:

print "Content-Type: text/html\n"

If you want just text output:

print "Content-Type: text/plain\n"

404

print "Status: 404 Not Found\n\n"; 
sys.exit(0);

keywords