Hi,
Am Montag 02 August 2004 15:28 schrieb Geoffrey Young:
But my point is, for a HEAD request, there is no data so apache should not touch my content-length header. I really dislike to generate the full data for the request and apache throws it away ( and even the I get no Content-Length header ).
for the record, this is fundamentally wrong. HEAD requests are supposed to be identical to GET requests in every way _except_ that there is no message body, which means that if a GET request for a specific resource does not have a C-L header then a HEAD request for the same resource also _must_ not have a C-L header. at least if you care about RFC compliance.
??? I do not know what you mean, my GET request _has_ a content-lenght header! For HEAD, I just do not calculate the expencive data for my body.
I just missed the content-length header on HEAD requests that is delivered on GET.
Geoff, see the t/apache/head_request.t test I've added last night. If you don't send a body, Apache strips the C-L header for HEAD requests. Sending at least 1 byte works as a workaround, but it smells like a bug in Apache.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] 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