Bindul Bhowmik wrote:
> On 3/29/06, onin <[EMAIL PROTECTED]> wrote:
> 
>>hi all!
>>
>>im using httpclient getmethod and i'd like to know
>>how can i get the file size of the file im currently downloading?
> 
> 
> You could look at the 'Content-Length' header field. Most servers set
> that field.

The Content-Length header will typically be set if you download
static content, like image files or a static HTML page. If you
are downloading a dynamically generated page, for example a JSP,
it will be missing. The server doesn't know the document size in
advance, and neither will the client.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to