W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1998

Re: size of downloaded resource

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 8 Jan 1998 18:53:08 +0100 (MET)
To: Gil Hansen <gil@objs.com>
cc: www-jigsaw@w3.org
Message-ID: <Pine.SOL.3.91.980108185157.2451A-100000@tarantula.inria.fr>
On Sun, 21 Dec 1997, Gil Hansen wrote:

> How does one obtain the size of a downloaded resource? The following always
> yields zero: int size = reply.getContentLength();
> 
> Thanks,
> Gil

The code is well reply.getContentLength(), but it has to called in the 
outgoingFilter(Request request, Reply reply);
Which is after the resource has been downloaded (I assume that you are 
talking about a client-side filter...)

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \                Architecture Domain - Jigsaw
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Thursday, 8 January 1998 12:53:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:27 GMT