Can't get Fiddler to capture HttpClient web api calls from MVC with localhost different port
<p>Yet another fiddler can't get it to capture post.</p>

<p>Similar to this <a href="https://stackoverflow.com/questions/16994111/cant-get-fiddler-to-capture-local-traffic-to-iis">SO Post</a> I have spent two hours now reading and trying different solution yet none of them allow me to see my fiddler web api traffic.</p>

<p>As a side note my code is working I am just focused on getting fiddler to show me the api calls.</p>

<p>I will describe my setup then what I have tried.</p>

<p>My Web API is a separate MVC 6, EF 7 project running on port 63381</p>

<blockquote>
  <p><a href="http://localhost:63381/" rel="nofollow noreferrer">http://localhost:63381/</a></p>
</blockquote>

<p>My ASP.NET MVC 5 web client project is running on port: 59722</p>

<blockquote>
  <p><a href="http://localhost:59722/" rel="nofollow noreferrer">http://localhost:59722/</a></p>
</blockquote>

<p>A typical action controller in the mvc client:</p>

<pre><code>//Controller CTOR
public ClientController()
{
  client = new HttpClient();
  client.BaseAddress = new Uri("http://localhost:63381/api/MyApi");
  client.DefaultRequestHeaders.Accept.Clear();
  client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
}

//Action within ClientController
public async Task&lt;JsonResult&gt; AddNewSubCategory()
{
   HttpResponseMessage responseMessage = await client.PostAsJsonAsync(url2, content);
   if (responseMessage.IsSuccessStatusCode)
   {
     return Json("[{Update Success}]", JsonRequestBehavior.AllowGet);
   }
     return Json("[{Error Updating}]", JsonRequestBehavior.AllowGet);
   }
}
</code></pre>

<ol>
<li><p>Added the  block to 32 &amp; 62 machine.config. Restarted visual studio did <em>NOT</em> restart machine or any other service. This did not work.</p></li>
<li><p>Added the  block to the client web.config and this didn't work.</p></li>
<li><p>Changed localhost to machinename:port
Specifically I changed <a href="http://localhost:63381/api/MyApi" rel="nofollow noreferrer">http://localhost:63381/api/MyApi</a> to <a href="http://gpgvm-pc:63381/api/MyApi" rel="nofollow noreferrer">http://gpgvm-pc:63381/api/MyApi</a></p></li>
<li><p>Modified Global.asax with:</p>

<p>ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });</p></li>
<li><p>Fiddler custom rules</p></li>
<li><p>Reverse proxy</p></li>
<li><p>Set fiddler listening on a different port.</p></li>
</ol>

<p>At this point I surrender. It seems to me #1 should work to capture everything but I am obviously still doing something wrong because I can get fiddler to capture one or the other but NOT the client calling off to the client???</p>

<hr>

<p>Update:</p>

<p>My machine locked and after reboot I started seeing the api calls so this issue was something with my machine. So sorry to bother.</p>