|
-
Jul 6th, 2001, 03:26 AM
#1
Thread Starter
New Member
How to get filedate and filesize ?
I need to read date and size of a file before I download it. Normally I use INET for downloading, but I need to read file informations only before for verify of a new file version. Is possible to do it?
Thanks in advance.
Raoul
-
Jul 6th, 2001, 06:14 AM
#2
Black Cat
I believe you need to use the HTTP HEAD command. I don't know if the Inet control supports it though.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 6th, 2001, 03:10 PM
#3
-
Jul 6th, 2001, 04:23 PM
#4
Hyperactive Member
FSO can't get the file size from a file on a Web Server.
-
Jul 6th, 2001, 04:31 PM
#5
What do you mean? If the code you are writing is on the same server as the file you are downloading, you can certainly get the size. I don't think yo can get it remotely using FSO, if that is what you mean.
-
Jul 6th, 2001, 06:12 PM
#6
Hyperactive Member
If it was on the same machine there would be no need to "download" using INET.
-
Jul 8th, 2001, 06:33 AM
#7
Thread Starter
New Member
Thanks JoshT, but I don't know HTTP HEAD command. Can you send me an example about it ?
Thanks.
-
Jul 9th, 2001, 06:48 AM
#8
Black Cat
HEAD /page.html HTTP/1.0
then two newlines.
It works almost exactly the same as HTTP GET, except the server only sends the HTTP headers, it doesn't send the content with them.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|