Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Get remote file information - size, date


'this uses the Internet Transfer Control
Dim temp As String
Inet.OpenURL " http://www.garybeene.com/index.htm "

'file length
temp = Inet.GetHeader( "Content-length" )
'file date
temp = Inet.GetHeader( "Last-modified" )
'to get all header info, don't specify the header type
temp = Inet.GetHeader