$r->content_type('application/pdf'); my $output = do { open my $pdf, $file or die "$file: $!"; binmode $pdf; local $/; <$pdf> }; # Return the page $r->header_out( 'Content-Length' => length($output) ); $r->send_http_header; $r->print($output); return OK;
In reply to Re: partial content download in mod perl 2
by wind
in thread partial content download in mod perl 2
by gcw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |