gwhite has asked for the wisdom of the Perl Monks concerning the following question:
I can't seem to find anything saying this should or shouldn't work. Yes the files have contents, I can download them from the server via FTP and they are fine or if I call from the server using HTTP it works fine.if ($input->param('view')) { if($format eq 'pdf') { print $input->header(-type=>'application/pdf'); } if($format eq 'xls') { print $input->header(-type=>'application/vnd.ms-excel'); } if($format eq 'xml') { print $input->header(-type=>'text/xml'); } if($format eq 'csv') { print $input->header(-type=>'text/plain'); } binmode STDOUT; open (REPORT , "< " . $output_file_name); sysread REPORT, my $content, -s REPORT; print $content; close REPORT; exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deliver a file via HTTPS
by pbeckingham (Parson) on Jul 07, 2004 at 20:17 UTC |