[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: httpfs translator



On Tue, Mar 19, 2002 at 11:14:48PM -0800, arun v wrote:
> BTW i haven't decided on how to get the size of files
> in web server.
> http rfc enumerates 4 or 5 methods for finding content
> length, but still undecided on how to get them
> reliably.

You should use a HEAD request and look at the Content-Length: header in
the response. I can't think of any method more reliable than that, and
it should also be reasonably quick.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: