![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I'd like to determine the size of a file via a URL. I'm not even sure how to do this on the local machine, let alone a URL. Any help would be greatly appreciated. |
#4
| |||
| |||
|
|
Jozef wrote: I'd like to determine the size of a file via a URL. I'm not even sure how to do this on the local machine, let alone a URL. Any help would be greatly appreciated. If you mean you want to know the size of the source file of a web page you can send request for the http headers only via a Microsoft.XMLHTTP object and check the value for Content-Length. In a nutshell: Dim msXML As Object Set msXML = CreateObject("Microsoft.XMLHTTP") msXML.Open "HEAD", url, False msXML.send Debug.Print msXML.getResponseHeader("Content-Length") Set msXML = Nothing |
#5
| |||
| |||
|
|
Dim msXML As Object Set msXML = CreateObject("Microsoft.XMLHTTP") msXML.Open "HEAD", url, False msXML.send Debug.Print msXML.getResponseHeader("Content-Length") Set msXML = Nothing |
![]() |
| Thread Tools | |
| Display Modes | |
| |