what .NET class to proxy HTTP requests through? (and keep track of bandwidth used)
What .NET class/methods could I use to write a simple HTTP(s) proxy that would run on my PC that would:
- Proxy all HTTP(S) requests through it
- Let me get bandwidth used per proxy'ed request (e.g. content length)
- Let me get requesting application or process name per prox开发者_JAVA技巧ied request
- Ability to proxy/stream the requests on through to my normal proxy server (server name, port, username, password)
You want to do this on the client side, right?
I think that WebRequest
is probably what you are looking for. As far as how to hook it in to the OS... that's a different question.
精彩评论