[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] back-building pfs updates
From: |
Robert Collins |
Subject: |
Re: [Gnu-arch-users] back-building pfs updates |
Date: |
Sun, 22 Feb 2004 11:09:12 +1100 |
On Sun, 2004-02-22 at 09:39, Florian Weimer wrote:
> Aaron Bentley wrote:
>
> > > HTTP HEAD should provide the necessary information, once you have the
> > > file name.
> >
> > Content-Length?
>
> Yes.
>
> > 1. Not the same as file size-- it's the size after encodings have been
> > performed
>
> If a transfer encoding is applied, no Content-Length: header must be
> sent.
That said, Content-Encodings can and will screw this up - unless you specify
what you will accept.
> You don't want to perform any encoding for plain files anyway. It just
> kills server performance.
> > 3. It appears that for a HEAD request, the content-length is 0. Can
> > anyone confirm or deny?
>
> This looks like a server bug (it's a violation of a SHOULD in the RFC).
not at all: from 9.2
If no response body is included, the response MUST include a
Content-Length field with a field-value of "0".
yet...
9.4 HEAD
The HEAD method is identical to GET except that the server MUST NOT
return a message-body in the response. The metainformation contained
in the HTTP headers in response to a HEAD request SHOULD be identical
to the information sent in response to a GET request.
HTTP has many such inconsistencies. It's not surprising the implementations are
inconsistent.
A reliable way to get the real length in octects is to request bytes
0-0.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
- Re: [Gnu-arch-users] back-building pfs updates, (continued)
- Re: [Gnu-arch-users] back-building pfs updates, Tom Lord, 2004/02/20
- Re: [Gnu-arch-users] back-building pfs updates, Aaron Bentley, 2004/02/21
- Re: [Gnu-arch-users] back-building pfs updates, Tom Lord, 2004/02/21
- Re: [Gnu-arch-users] back-building pfs updates, Aaron Bentley, 2004/02/21
- Re: [Gnu-arch-users] back-building pfs updates, Tom Lord, 2004/02/22
- Re: [Gnu-arch-users] back-building pfs updates, Aaron Bentley, 2004/02/22
- Re: [Gnu-arch-users] back-building pfs updates, Robert Collins, 2004/02/23
Re: [Gnu-arch-users] back-building pfs updates, Florian Weimer, 2004/02/21