perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject RE: Tturning off buffering for txt file downloads
Date Thu, 16 Feb 2006 15:30:54 GMT

> I'm trying to download a very large text file, and I'd like 
> to turn off buffering on a per-page basis, since most of our 
> pages don't take too long to generate.
> After looking through the docs, I've tried setting various 
> combinations of flags in config:
>   optEarlyHttpHeader, optSendHttpHeader, dbgFlushOutput

These options are no longer supported in Embperl 2 (see README.v2).

Unfortuinately Embperl 2 cannot turn off buffering and delivers the page all
at once

> But it's not clear to me that this works on per page basis 
> for embperl 2, or if it does, how to output my "special" 
> headers, rather than the standard headers:
>   $http_headers_out{'Content-Type'} = 'text/list';
>   $http_headers_out{'Content-Disposition'} = 'attachment; 
> filename="recipientEmails.txt"';

Setting header in that way should work, but you should not set one of the
options optEarlyHttpHeader, optSendHttpHeader.


** Virus checked by BB-5000 Mailfilter ** 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message