[Tutor] Newbie - Premature end of script headers
Tue, 22 Aug 2000 09:50:32 -0700
When I upload a cgi script I've written to an Apache server, I get an
Internal Server Error with "premature end of script headers" as the
detail. The script works OK in pythonwin on my NT4 machine, but I'm
wondering if I need something more for Apache. I have the appropriate
shebang at the top of the script, so I'm puzzled.
This is the routine that should be triggered:
print "Content-type: text/html\n\n"
print "<body><p>Props Here</p></body>"
This is the code that should call that routine:
if __name__ == '__main__':
sys.stderr = sys.stdout
form = cgi.FieldStorage()
data = FeedBackData(form)
if data.user == 'Peter':
MANY thanks in advance to who(m)ever responds!! I really appreciate it.
(415) 751-1285 (h/w)
(415) 378-9663 (m)
(425) 928-5312 (f)