12

I need to track http/url requests & redirects from a windows forms application using C#. It should handle both IE & firefox. Not sure if Fiddler is open-source but if i'm not mistaken, it's written using .NET. Sample codes or online articles on how to listen to http/url requests & redirects will be appreciated.

Thanks!

Leon Tayson
  • 4,741
  • 7
  • 37
  • 36

2 Answers2

17

Fiddler works as standard HTTP proxy. There is no magic here. See HTTP protocol for details. In both IE/Firefox, you need to set Fiddler (or your custom program) as proxy, and then browser will use it for all outgoing requests. Proxy is responsible for forwarding request to correct server, and returning response. Proxies are typically used for 1) caching, 2) controlling access (and avoiding firewalls), 3) debugging.

See also Open Source Proxy Library for .Net for .NET proxy library (just quick googling... I have no experience with it).

Community
  • 1
  • 1
Peter Štibraný
  • 32,463
  • 16
  • 90
  • 116
  • is there any information out there that I can use to build my own HTTP proxy like `fiddler`?where to start? do I have to write it in c++? – user786 Sep 14 '16 at 11:16
14

You'd probably be interested in the new FiddlerCore library: http://fiddler.wikidot.com/fiddlercore

EricLaw
  • 56,563
  • 7
  • 151
  • 196