I am trying to print some html, and 5 seconds later download a file. Instead of downloading the file, it prints out the file in html. My feeling is this has to do with the default header content-type that specifies html. So what I end up seeing is binary data printed out in my browser, plus the html I am trying to print. What I want is to print out the html, and then have a popup screen that allows me to download the file. Problem is I need to specify two content-types it seems. Can this be done as a multipart document? Does anyone have any code examples? Help is greatly appreciated... ;0)print $cgi->header( -meta => { 'HTTP-EQUIV' => 'refresh', 'CONTENT' => '5', 'URL' => 'http://url/file. +xls' }); print $cgi->start_html(); print "<h1>HTML Body</h1>"; print $cgi->end_html();
In reply to Cannot download and print html by frank_2k4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |