Re: Content-Length in HEAD responses

2012-11-11 Thread Ivan Zhakov
On Sun, Nov 11, 2012 at 2:28 AM, Justin Erenkrantz wrote: > On Sat, Nov 10, 2012 at 3:25 PM, Thomas Åkesson wrote: >> >> I suppose this means that it would be a significant optimization to >> perform HEAD rather than GET when discovering ACLs for every subdirectory in >> a directory listing? > >

Re: Content-Length in HEAD responses

2012-11-10 Thread Justin Erenkrantz
On Sat, Nov 10, 2012 at 3:25 PM, Thomas Åkesson wrote: > I suppose this means that it would be a significant optimization to > perform HEAD rather than GET when discovering ACLs for every subdirectory > in a directory listing? > Probably - doing the HEAD request will run the full authn and authz

Re: Content-Length in HEAD responses

2012-11-10 Thread Thomas Åkesson
Thanks Justin for clarifying. On 10 nov 2012, at 12:54, Justin Erenkrantz wrote: > On Sat, Nov 10, 2012 at 6:49 AM, Justin Erenkrantz > wrote: > There is a C-L header...so, I don't know what the original poster is seeing, > but we're already doing the right thing... -- justin > > I bet the OP

Re: Content-Length in HEAD responses

2012-11-10 Thread Justin Erenkrantz
On Sat, Nov 10, 2012 at 6:49 AM, Justin Erenkrantz wrote: > There is a C-L header...so, I don't know what the original poster is > seeing, but we're already doing the right thing... -- justin > I bet the OP is trying to do HEAD on a directory as there was talk elsethread about trying to discover

Re: Content-Length in HEAD responses

2012-11-10 Thread Justin Erenkrantz
On Fri, Nov 9, 2012 at 11:37 PM, Branko Čibej wrote: > That would imply that, if content-length doesn't get set on a HEAD > response, but Transfer-Encoding: chunked does, then everything is > correct, right? If somewhat inefficient. > The chunked header is only sent on non-HEAD responses. r->ch

Re: Content-Length in HEAD responses

2012-11-09 Thread Branko Čibej
On 10.11.2012 04:59, Justin Erenkrantz wrote: > On Fri, Nov 9, 2012 at 10:15 AM, C. Michael Pilato wrote: > >> request, so I'm wondering ... does Apache just handle a HEAD as a GET >> under-the-hood and then discard the resulting response body? The comment >> > Unless the handler does something sp

Re: Content-Length in HEAD responses

2012-11-09 Thread Justin Erenkrantz
On Fri, Nov 9, 2012 at 10:15 AM, C. Michael Pilato wrote: > request, so I'm wondering ... does Apache just handle a HEAD as a GET > under-the-hood and then discard the resulting response body? The comment > Unless the handler does something special, yes, httpd will treat HEAD as a GET until it i

Re: Content-Length in HEAD responses

2012-11-09 Thread C. Michael Pilato
On 11/08/2012 11:42 AM, Daniel Shahaf wrote: > Thomas Åkesson wrote on Thu, Nov 08, 2012 at 15:15:03 +0100: >> >> On 5 nov 2012, at 09:11, Branko Čibej wrote: >> >>> On 05.11.2012 00:21, Thomas Åkesson wrote: I did some tests with curl --head just as a sanity check. It seems to be a goo