Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

traffic counter

Status
Not open for further replies.

cflis

Programmer
Jul 29, 2000
2
UA
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.
 
cflis,

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.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top