ChaosTheEternal Level: Whizz Kid

 Registered: 13-05-2004 Posts: 17
|
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]
|