You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Denis Banovic <de...@ncm.at> on 2004/08/04 13:06:45 UTC

[mp2] Content-Length: 0

Hi!

I just got a new Server with apache 2.046 and mp2

I have some problems when running under mod_perl, that Content-Length: 0 always shows 0 Byte

When running under cgi, content length is there.

Has someone had something similar?

Do I have to take care of the content_length?

Thanks

Denis

"THINK THE WEB WAY."
---------------------------------------------------
	NCM - NET COMMUNICATION MANAGEMENT GmbH
---[  Denis Banovic - CTO
	mailto:denis.banovic@ncm.at
---[  Mühlstrasse 4a
      AT - 5023 Salzburg
      Tel. 0662 / 644 688
---[  Fax: 0662 / 644 688 - 88 
      http://www.ncm.at
---------------------------------------------------


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Content-Length: 0

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Denis Banovic wrote:
> Hi!
> 
> I just got a new Server with apache 2.046 and mp2
> 
> I have some problems when running under mod_perl, that Content-Length: 0 always shows 0 Byte
> 
> When running under cgi, content length is there.
> 
> Has someone had something similar?
> 
> Do I have to take care of the content_length?

no, apache automatically computes the content length of the request for you
(or does not if it finds that a C-L header is not required) so you no longer
should handle this yourself.

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html