Re: Flush headers ?

2017-02-06 Thread Ben RUBSON
> On 07 Feb 2017, at 02:40, André Warnier (tomcat) wrote: > > On 06.02.2017 18:33, Ben RUBSON wrote: >> Hi, >> >> I'm using mod_perl2 and I'm trying to flush headers before the body content. >> >> $r->content_type('application/zip'); >> $r->headers_out->add('Content-Disposition' => 'attachment'

Re: Flush headers ?

2017-02-06 Thread Jie Gao
Try moving the header addition line to after the flush statement. Regards, Jie * André Warnier (tomcat) wrote: > Date: Tue, 7 Feb 2017 02:40:44 +0100 > From: "André Warnier (tomcat)" > To: modperl@perl.apache.org > Subject: Re: Flush headers ? > User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38

Re: Flush headers ?

2017-02-06 Thread tomcat
On 06.02.2017 18:33, Ben RUBSON wrote: Hi, I'm using mod_perl2 and I'm trying to flush headers before the body content. $r->content_type('application/zip'); $r->headers_out->add('Content-Disposition' => 'attachment'); $r->rflush; long_operation(); Unfortunately this does not work. When you s

Flush headers ?

2017-02-06 Thread Ben RUBSON
Hi, I'm using mod_perl2 and I'm trying to flush headers before the body content. $r->content_type('application/zip'); $r->headers_out->add('Content-Disposition' => 'attachment'); $r->rflush; long_operation(); Unfortunately this does not work. The following works, but of course corrupts my outpu