How can I calculate HTTP traffic for local computer using Delphi?
I need to write program module which will calculate traffic and it will be used in my program.
It depends on whether or not the web serve is on the local machine. If so, then I presume there are logs being generated. Given that, I'd probably make a copy of the logs, slurp them into TStringLists, and then begin parsing them from there.
If the local machine doesn't have a web server, e.g. it's using another machine to serve the HTPP requests (which is common in a business environment), then you could either search the logs on that machine for the local machine's IP address or (possibly) try parsing out the History (or the cache) of the local machine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.