Re: Content length

Giganews Newsgroups
Subject: Re: Content length
Posted by:  Markku Uttula (markku.uttu…@disconova.com)
Date: Thu, 24 Jul 2003

"Constantine Hvan" wrote...
>  IdHTTP1->Head(FileURLEdt->Text);
>  iFileSize = IdHTTP1->Response->ContentLength;
>
> Show me please, how can I know the length of remote file without
> starting to download it (by Get method somehow?).

You can't (foolproof). Some servers don't set the content-length field.

--
Markku Uttula

Replies

In response to

Content length posted by Constantine Hvan on Thu, 24 Jul 2003