file upload CGI error

sparrowhawk9909 at sparrowhawk9909 at
Thu Dec 21 05:49:16 CET 2000

I was using python 1.5.1 as CGI script with IIS
on windows NT. That was
working fine. But when I upgrade to python 1.5.2,
every time I upload
binary file such as GIF files cause CGI error.
I've tried python 1.6
and python 2.0 also, but the result was same.
Followings are the
error message.

CGI Error
The specified CGI application misbehaved by not
returning a complete set
of HTTP headers. The headers it did return are:

Traceback (most recent call last):
  File "C:\InetPub\wwwroot\python\sample2
\", line 5, in ?
    form = cgi.FieldStorage()
  File "c:\inetpub\wwwroot\", line 869, in
    self.read_multi(environ, keep_blank_values,
  File "c:\inetpub\wwwroot\", line 954, in
    headers = rfc822.Message(self.fp)
  File "c:\python\lib\", line 92, in
  File "c:\python\lib\", line 135, in
    startofline = tell()
IOError: (0, 'Error')

Can anyone help me out ?

Sent via

More information about the Python-list mailing list