borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Downloading Files)Next Topic (How can i select property printer?) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : Determining a web files size
Poster Message
ChaosTheEternal
Level: Whizz Kid


Registered: 13-05-2004
Posts: 17

icon Determining a web files size

Is there any way to find the size of a file on a web page without actually downloading it first?

And is there any way of doing this purely through API and not References?

Thank you for your time and help.

EDIT: Well, I did figure out how to find a file size via the Inet reference.

(this is an example of the code)
Public hdrSize as String
Public lngSize as Long

Private Sub GetSize()
    INet.OpenURL "http://www.andreavb.com/index.html"
    hdrSize = INet.GetHeader("Content-length")
    lngSize = CLng(Val(hdrSize))
Exit Sub


Any ideas on how to do this without the INet control?

Again, thank you for your time and help.

[Edited by ChaosTheEternal on 19-07-2005 at 05:21 PM GMT]

11-07-2005 at 10:06 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Internet Applications : Determining a web files size
Previous Topic (Downloading Files)Next Topic (How can i select property printer?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder