[thelist] How do I track successful downloads?

Ryan Finley RyanF at SonicFoundry.com
Wed Mar 14 12:24:41 CST 2001


Thanks for the help...I'm sending karma your way.  It should arrive shortly.

This list is awesome!

	Ryan Finley
	Developer - AcidPlanet.com


-----Original Message-----
From: Tony Collen [mailto:manero at yossman.com]
Sent: Wednesday, March 14, 2001 12:18 PM
To: 'thelist at lists.evolt.org'
Subject: Re: [thelist] How do I track successful downloads?


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
--


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list