[thelist] How do I track successful downloads?
Tony Collen
manero at yossman.com
Wed Mar 14 12:14:56 CST 2001
On Wed, 14 Mar 2001, Ryan Finley wrote:
> Is there any way of tracking the number of downloads from a website that
> actually complete?
>
> I don't think it's possible with HTTP and IIS 5.0, but I want to make sure
> I'm not overlooking anything...
I thought you could check the apache logs for the filesize, but then I
wasn' sure if it just reported the size of the file or the actual number
of bytes transferred, so I tested it:
We'll test it with the new Counter-Strike patch file:
-rw-rw-r-- 1 tonyc tonyc 20465180 Mar 13 17:08 /usr/home/tonyc/public_www/csv1011.exe
Now, looking at the apache logs:
192.168.1.51 - - [14/Mar/2001:12:14:34 -0600] "GET /~tonyc/csv1011.exe HTTP/1.1" 200 2949120
192.168.1.51 - - [14/Mar/2001:12:14:53 -0600] "GET /~tonyc/csv1011.exe HTTP/1.1" 206 7839744
192.168.1.51 - - [14/Mar/2001:12:17:19 -0600] "GET /~tonyc/csv1011.exe HTTP/1.1" 200 20465180
Comparing the last number to the size of the file on the disk, you can see
that there were two aborted transfers and one complete. You could write a
real quick and dirty Perl script to go through the logs and compare the
file transferred against the total size of it.
Hope that helps.
--
Anthony Collen
manero at yossman.com
http://manero.org
--
More information about the thelist
mailing list