in reply to header (-type=>'application/x-octet-stream') and header (-type=>'plain/html') don't play nicely together

You can't send two completely different things to the browser as the same time. If you want to display some HTML while a file is downloading, send a plain HTML page with a redirect to the file download script.
  • Comment on Re: header (-type=>'application/x-octet-stream') and header (-type=>'plain/html') don't play nicely together