> 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:
>
Embperl outputs the it's http headers after the processing of the page, but
the send_fd is outputed when it occurs, so it's output comes before the
headers Embperl sends.
Since you send your own headers via send_http_header, you can simply disable
Embperl hhtp header sending by putting a
$optSendHttpHeader = 0 ;
inside the page, then it should work
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]