help about download script

W

wakun

Hi there,
I wonder if any script can record the download times of a specific
file. Thanks in advance.
 
A

alexander.glass

Consider writing a program that parses the IIS logs. You could use a
regular expression to match lines that contain the file and use it to
locate the date.
 
G

Guest

(e-mail address removed) wrote in @o13g2000cwo.googlegroups.com:
Consider writing a program that parses the IIS logs. You could use a
regular expression to match lines that contain the file and use it to
locate the date.

Also consider using a HTTPHandler to track downloads... might be easier
than using IIS logs.
 
W

wakun

Spam Catcher 写é“:
(e-mail address removed) wrote in @o13g2000cwo.googlegroups.com:


Also consider using a HTTPHandler to track downloads... might be easier
than using IIS logs.
Sounds great. Would you please give me an example?
 
I

intrader

Hi there,
I wonder if any script can record the download times of a specific
file. Thanks in advance.
This can be done via javascript.
At the top render
<script>
var starttime=getTime();
</script>
in the <body> use an onload event that does the records
onload="javascript:alert("elapsed="+(getTime()-starttime));"
Note that this gives you time in milliseconds.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top