v:\> echo %@ifilesize[jpsoft.com/downloads/v16/tcmd.exe] 21593248
v:\> echo %@strip[^,,%@word[" ",2,%@execstr[dir /m /k ftp://lucky.syr.edu/4plugins/4autotray.zip]]] 106231
I don't know about HTTP itself, but you can do it with WININET functions.
v:\> function ftpsize `%@word[1,%@execstr[1,iftp /v ftp://%1 > NUL & iftp /s size %2 & iftp /c]]` v:\> echo %@ftpsize[lucky.syr.edu/4plugins,4autotray.zip] 106231 v:\> echo %@ftpsize[lucky.syr.edu/,4plugins/4autotray.zip] 106231
According to IPWorks, their v9 HTTP component supports the HEAD method:
Not sure how curl does it, but curl does indeed allow me to get the file size via an HTTP link. See the example in my previous post.
urlsize=%@word[1,%@execstr[curl --head --insecure --silent %1 | find "Content-Length"]]
I did some searching, and found an older copy of 4UTILS, and it works;Hmmm! I remember making changes which broke the plugins on Windows XP. Here, the one you have works OK with TCCv17 on Windows 7. I don't remember how if fared on Vista. Perhaps Rex will know what's going on. I don't know if I'll be able to fix it.
v:\> function ftptime `%@word[1,%@execstr[1,iftp /v ftp://%1 > NUL & iftp /s mdtm %2 & iftp /c]]` v:\> echo %@ftptime[lucky.syr.edu/,4plugins/4autotray.zip] 20141202055606.452