{"id":4805,"date":"2017-04-27T18:22:52","date_gmt":"2017-04-27T18:22:52","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=4805"},"modified":"2017-04-27T18:22:52","modified_gmt":"2017-04-27T18:22:52","slug":"intercepting-localhost-calls-with-fiddler","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/intercepting-localhost-calls-with-fiddler\/","title":{"rendered":"Intercepting localhost calls with Fiddler"},"content":{"rendered":"<p>A while back I wrote a post on <a href=\"http:\/\/putridparrot.com\/blog\/intercepting-and-creating-soap-messages-using-fiddler\/\" target=\"_blank\">Intercepting and creating SOAP messages using Fiddler<\/a>. <\/p>\n<p>I&#8217;ve just had to revisit this post to debug changes in a SOAP implementation which seemed to be causing unexplained failures. <\/p>\n<p>So I started up the servers (running in Java) and configured my .NET client as per the previously mentioned post, but for completeness, let&#8217;s show the App.config changes here anyway<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;system.net&gt;\r\n   &lt;defaultProxy&gt;\r\n    &lt;proxy bypassonlocal=&quot;false&quot; usesystemdefault=&quot;true&quot; \/&gt;\r\n   &lt;\/defaultProxy&gt;\r\n&lt;\/system.net&gt;  \r\n<\/pre>\n<p>I then ran Fiddler v4.5.x.x and then the .NET application. Fiddler showed no traffic.<\/p>\n<p><strong>Fiddler and localhost from a .NET application<\/strong><\/p>\n<p>Hunting around, I found several possible solutions, for intercepting IE or another browser, changing <em>localhost<\/em> to <em>localhost.<\/em> was one suggestion as well as adding the Fiddler proxy in some other way, but as per<a href=\"http:\/\/docs.telerik.com\/fiddler\/observe-traffic\/troubleshooting\/notraffictolocalhost\" target=\"_blank\"> Problem: Traffic sent to http:\/\/localhost or http:\/\/127.0.0.1 is not captured<\/a>, simply changing localhost in your application to the machine&#8217;s name worked and now I could intercept localhost messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while back I wrote a post on Intercepting and creating SOAP messages using Fiddler. I&#8217;ve just had to revisit this post to debug changes in a SOAP implementation which seemed to be causing unexplained failures. So I started up the servers (running in Java) and configured my .NET client as per the previously mentioned [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-4805","post","type-post","status-publish","format-standard","hentry","category-fiddler"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=4805"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4805\/revisions"}],"predecessor-version":[{"id":4836,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/4805\/revisions\/4836"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=4805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=4805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=4805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}