简体   繁体   中英

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 (eg content length)
  • Let me get requesting application or process name per proxied 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM