Using the following code ( EPL 1.3.1 ) :
.....
my $fh = new FileHandle( $fdat{filename}, 'r');
$req_rec->content_type( 'binary/octet-stream' );
$req_rec->header_out( 'Content-Disposition', "inline;
filename=$fdat{filename};" );
$req_rec->send_http_header;
$req_rec->send_fd( $fh );
close $lfh;
exit;
....
Generates a file with the header information at the end:
145 0831 Y [EMAIL PROTECTED] PAAC 1999-08-05 D
DAVENPORT QQQ OBCORR
146 0831 Y [EMAIL PROTECTED] PAAC 1999-08-26 D
DAVENPORT QQQ OBCORR
147 0831 Y [EMAIL PROTECTED] PAAC 1999-08-26 D
DAVENPORT QQQ OBCORR
HTTP/1.1 200 OK
Date: Tue, 27 Mar 2001 02:56:03 GMT
Server: Apache/1.3.14 (Unix) mod_perl/1.24_01
Content-Disposition: inline; filename=anyfile.txt.log;
Keep-Alive: timeout=15, max=98
Connection: Keep-Alive, Keep-Alive
Transfer-Encoding: chunked, chunked
Content-Type: binary/octet-stream
....
Any help would be greatly appreciated.
Aldo Letellier
Development
Bigfoot Interactive
(646) 227-7410
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]