Premature End Of Script Headers

Victor Subervi victorsubervi at gmail.com
Mon Jan 4 22:00:12 CET 2010


Hi;

Here's my entire test script:

#!/usr/bin/python

def myMail():
  print 'Content-type: text/html'
  print
  print '''
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../../css/style.css">
</head>
<body>'''

Here's the error:

[Mon Jan 04 12:59:15 2010] [error] [client 66.82.9.61] Premature end of
script headers: mail.py, referer: http://angrynates.com/cart/cart2.py

[root at 13gems simplemail]# ls -al
total 60
drwxr-xr-x 2 beno beno  4096 Jan  4 12:58 .
drwxrwxrwx 6 beno beno  4096 Jan  4 12:53 ..
-rwxr-xr-x 1 beno beno   252 Jan  4 06:18 mailer_test.py
-rwxr-xr-x 1 beno beno   807 Jan  4 06:18 mail_old.py
-rwxr-xr-x 1 beno beno  2988 Jan  4 12:58 mail.py
-rwxr-xr-x 1 beno beno 17918 Jan  4 06:18 simplemail.py
-rwxr-xr-x 1 beno beno 16230 Jan  4 06:18 template.py
-rwxr-xr-x 1 beno beno   263 Jan  4 06:18 testmail.py

What gives?
TIA,
beno

-- 
The Logos has come to bear
http://logos.13gems.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100104/815d16bc/attachment.html>


More information about the Python-list mailing list