Re: PIPE and mod_perl2

Denis Spichkin <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CALWxWOPRyqYgJ_QWNYsaTUQASkx6v3a-7MCOa3UZPV5SS3d-Ww@mail.gmail.com>
Thank you for your replay
yes,  flush the headers is really work but only in IE (in Firefox it
doesn't work)
and its work only in cycle

        while (<PIPE>) {
            $r->rflush;
                $r->print( $_ );
           };

when i use $r->rflush only one time (before cycle ) it doesn't work.
(it set Transfer-Encoding chunked but the page is show entirely at
once)

rflush help me set follow header

Date	Mon, 05 Dec 2011 19:07:48 GMT
Server	Apache/2.2.16 (Ubuntu)
Vary	Accept-Encoding
Content-Encoding	gzip
Connection	close
Transfer-Encoding	chunked
Content-Type	text/html

but I completely don't undestand what difference between IE and
Firefox in this case.



2011/12/5 David Booth <[email protected]>:
> On Mon, 2011-12-05 at 17:39 +0400, Denis Spichkin wrote:
> [ . . . ]
>> so now I need find out how generate page with out Content-Length in mod_perl
>
> I believe you need to force Apache to flush the headers.  Otherwise it
> will try to compute and add the Content-Length header for you.  See
> http://perl.apache.org/docs/2.0/user/handlers/http.html#item_The_special_case_of__code_Content_Length__0__code_
>
>
> --
> David Booth, Ph.D.
> http://dbooth.org/
>
> Opinions expressed herein are those of the author and do not necessarily
> reflect those of his employer.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.