Filesize of downloads form www

  • Thread starter Thread starter Steffen Loringer
  • Start date Start date
S

Steffen Loringer

Hi group,

can I get any information on the size of a file in the internet? My
program is searching pdf documents in the www. But before the download
is started it would be helpful to know the size of the file to be
downloaded. Is there a way?

Thanks a lot
Steffen
 
how about

dim CurURI as new uri(strResourceURL)
dim request as WebRequest=WebRequest.Create(CurURI)
dim response as WebResponse=request.GetResponse()

'the following gets the length
response.ContentLength

HTH,

Shane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top