[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: mod_perl2, HEAD request and Content-Length
From: Stas Bekman <stas () stason ! org>
Date: 2004-07-31 8:20:35
Message-ID: 410B5653.1080601 () stason ! org
[Download RAW message or body]
Geoffrey Young wrote:
>
> Boris Zentner wrote:
>
>>Hi,
>>
>>I have a handler, that serve dynamic pages or static ones. If the handler gets
>>a HEAD request, it answers with
[...]
> it is desired - you no longer need to set the Content-Length header for
> requests in Apache 2.0.
It's somewhat documented:
http://perl.apache.org/docs/2.0/user/handlers/http.html#Handling_HEAD_Requests
> basically, any C-L header you set in the content-generation phase of the
> request has the potential to be incorrect, since any filter can come along
> and alter the content. so, what apache does is it runs the new
> content-length filter, which will decide whether a C-L header is required
> and take appropriate steps. for instance, apache will abandon the C-L
> header if it decides it can use a chunked transfer encoding instead.
Geoff, feel free to improve that section to be more complete. Thanks.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic