Re: Getting Content-Length

Giganews Newsgroups
Subject: Re: Getting Content-Length
Posted by:  Remy Lebeau (TeamB) (
Date: Mon, 5 Apr 2004

"-Mr. Coder-" <FelixLelch…> wrote in message

> do someone know, how to get the Content-Length (Size)
> of a file located on a HTTP server (without downloading
> the whole file!) ?

Call TIdHTTP.Head().  It will fill in the Response property with same file
information that Get() returns, but the actual file data will not be
transferred as well.




In response to

Getting Content-Length posted by -Mr. Coder- on Sat, 3 Apr 2004