Re: Content length

Giganews Newsgroups
Subject: Re: Content length
Posted by:  Remy Lebeau (TeamB) (gambit…@yahoo.com)
Date: Mon, 28 Jul 2003

"Constantine Hvan" <darkjudicat…@mail.ru> wrote in message
news:A857A34C5378E240darkjudicat…@mail.ru...

> But some of servers does't support Head method (connection
> closed gracefully exception is raised anytime but downloading is ok)
> So Get method works fine.
> Show me please, how can I know the length of remote file
> without starting to download it (by Get method somehow?).

The short answer is, if the server does not support Head() then you have no
reliable way to do what you are asking.  The whole point of Head() is to
retreive resource info without actually downloading the file first.

Gambit

Replies

In response to

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