The bug is in my own code. I called $r->rflush() before
$r->headers_out->add("Content-Length",length($content)). This somehow also
seem to trigger the response header Transfer-Encoding: chunked
Khai
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: Re: [EMAIL PROTECTED] mod_perl not sending Content-Length header
Date: Tue, 24 Jan 2006 11:45:05 +0200
Hi,
Use the following method:
$r->set_content_length(length($content));
Upgrading mod_perl is also a good idea.
Teddy
----- Original Message -----
From: "Khai Doan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 24, 2006 6:11 AM
Subject: [EMAIL PROTECTED] mod_perl not sending Content-Length header
> Hello everyone,
>
> I have Fedora Core 2 which has Apache/2.0.51 and mod_perl-1.99_12-2.1 .
I
am using mod_perl to generate dynamic content, and I always know the length
of the content I will be sending to the browser. So I have Keep-Alive On.
In my code, I call:
>
> $r->headers_out->add("Content-Length",length($content));
>
> But I notice that it does not send the Content-Length response header
(verified with ethereal packet capture)
>
> Anyone has similar problem? Any suggestion?
>
> Khai
> ---------------------------------------------------------------------
The
official User-To-User support forum of the Apache HTTP Server Project. See
for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] "
from the digest: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]