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" <khai_quyen@xxxxxxxxxxx> To: <users@xxxxxxxxxxxxxxxx> Sent: Tuesday, January 24, 2006 6:11 AM Subject: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx