Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^3: CRC Error on ZIP Files

by graff (Chancellor)
on Mar 01, 2014 at 19:56 UTC ( #1076694=note: print w/ replies, xml ) Need Help??

in reply to Re^2: CRC Error on ZIP Files
in thread CRC Error on ZIP Files

Apart from Corion's suggestion to include binmode STDOUT (which I think really might be an issue, even if it's not the only issue), you may also want to try:

print $html->header(-type => 'application/zip', );
At least, according to Wikipedia, zip file format is "registered" as an official MIME type.

Update: I actually don't know whether fixing the mime-type label will make any difference. I'm guessing that the issue is whether or not a carriage-return byte gets added before each line-feed byte, possibly at the receiving end, if not at the transmission end. Note the exact byte count for the original (working) zip file, then compare that to the exact byte count of a downloaded version; if the latter is bigger, there's something like a "unix2dos" filter kicking in at some point in the download process, and that will certainly screw up the zip file.

Comment on Re^3: CRC Error on ZIP Files
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076694]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-11-27 10:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (723 votes), past polls