in reply to Re^5: How to download a file from the server (content disposition CGI->header( qw{ -type mime/type -attachment filename } ) )in thread How to download a file from the server
Update: You're already using binmode.
Half the time :)