in reply to Re^4: 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

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.

  • Comment on Re^5: How to download a file from the server (content disposition CGI->header( qw{ -type mime/type -attachment filename } ) )
  • Select or Download Code

Replies are listed 'Best First'.
Re^6: How to download a file from the server (content disposition CGI->header( qw{ -type mime/type -attachment filename } ) )
by Anonymous Monk on Jul 24, 2013 at 13:49 UTC

    Update: You're already using binmode.

    Half the time :)