Still fighting: "Please help me upload a binary file through a CG I script"

Mark Steele msteele at toppanelectronics.com
Mon Dec 2 12:10:20 CST 2002


Hi all,

Over the weekend I tried the script on my home Linux system, worked.
I tried it on my hosted Linux site, worked fine too.

However, this is what I get at work:

[Mon Dec 02 09:53:55 2002] [error] [client 192.1.1.209] Premature end of
script headers: /opt/apache2/lib/cgi-bin/upload.cgi, referer:
http://89.80.89.13/cgi-bin/upload.cgi
[Mon Dec 02 09:53:55 2002] [error] [client 192.1.1.209] CGI.pm: Server
closed socket during multipart read (client aborted?)., referer:
http://89.80.89.13/cgi-bin/upload.cgi

The script will upload text files fine, it only barfs when I try an Excel
(or any
other binary) file.

I'm using:
Apache 2.0.35, 
Perl 5.6.1, 
CGI.pm 2.88
HP-UX 10.2

The browser is IE on WIN 95...

Any ideas?

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: upload.cgi
Type: application/octet-stream
Size: 1313 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20021202/d33230e4/upload.obj


More information about the San-Diego-pm mailing list