Last post Mar 02, 2015 11:54 PM by Shawn - MSFT
Mar 02, 2015 03:08 AM|IranianCuriousBoy|LINK
I have some zip files in a path in my website. I want to count the number of times they downloaded. I thought that the HTTPModules are a good choice for counting the downloads. The module counts the request to the path and the files. I thought its practical
but I searched the web and did not find anything. Most of the counters implemented with Handlers. Now I ask my question:
1- Is there any article about that? Is anybody implemented this way of counting? Is it practical?
2-In downloading there are two events: completely download, cancel download. What events in module count them? I mean what events should I hook to?
3-Some download managers use download segmentation for faster download. Is segmentation affect counting downloads?
Mar 02, 2015 11:54 PM|Shawn - MSFT|LINK
HTTP modules and HTTP handlers are an integral part of the ASP.NET architecture. While a request is being processed, each request is processed by multiple HTTP modules (for example, the authentication module and the session module) and is then processed
by a single HTTP handler. After the handler has processed the request, the request flows back through the HTTP modules.
Modules are called before and after the handler executes. Modules enable developers to intercept, participate in, or modify each individual request. Handlers are used to process individual endpoint requests.
For this situation, you may refer to the following links for more information about ASP.NET HTTP Modules and HTTP Handlers :
Besides, for tracking downloads, you could also refer to the following information: