I recommend looking at a network dump and inspecting the web server error logs.
Also, you may want to binmode the socket when sending binary data. You also want to send a Content-Length header and a HTTP response code. Maybe you want to use HTTP::Response or CGI to create the response output?
Update: You're already using binmode.
In reply to Re^5: How to download a file from the server (content disposition CGI->header( qw{ -type mime/type -attachment filename } ) )
by Corion
in thread How to download a file from the server
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |