title: How to setup FiddlerCore code to capture REST calls from WPF application
body: <p>I have a WPF application. I am making REST calls from that.</p>
  
  <p>I would like to alter the response XML/JSON of the rest service.</p>
  
  <p>I am using FiddlerCore to intercept the call.</p>
  
  <p>I need to listen to ALL the ports in my local machine.</p>
  
  <pre><code>    List&lt;Fiddler.Session&gt; oAllSessions = new List&lt;Fiddler.Session&gt;();
  
                  FiddlerCoreStartupFlags oFCSF = FiddlerCoreStartupFlags.Default;
                  oFCSF = (oFCSF &amp; ~FiddlerCoreStartupFlags.DecryptSSL);
  
                  //Fiddler.FiddlerApplication.Startup(8080, true, true);
                  FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
                  {
  
                  };
  
                  FiddlerApplication.BeforeResponse += delegate(Fiddler.Session oS)
                  {
  
                  }
                  };
  Fiddler.FiddlerApplication.Startup(0, true, false);
  </code></pre>