Re: Getting Content-Length

Giganews Newsgroups
Subject: Re: Getting Content-Length
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Mon, 5 Apr 2004

"-Mr. Coder-" <FelixLelch…@freenet.de> wrote in message
news:E7C53A330B98E240FelixLelch…@freenet.de...

> 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.

Gambit

Replies

None

In response to

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