<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Senthil Rajasekharan&#039;s Personal Blog - Meeting of Minds &#187; Debugging</title>
	<atom:link href="http://blog.rajasekharan.com/category/technology/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajasekharan.com</link>
	<description>And this too shall pass...</description>
	<lastBuildDate>Mon, 19 Dec 2011 02:45:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Capturing, Debugging localhost HTTP traffic with Fiddler</title>
		<link>http://blog.rajasekharan.com/2008/08/11/capturing-debugging-localhost-http-traffic-with-fiddler/</link>
		<comments>http://blog.rajasekharan.com/2008/08/11/capturing-debugging-localhost-http-traffic-with-fiddler/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 20:07:06 +0000</pubDate>
		<dc:creator>senthil</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[fiddler]]></category>
		<category><![CDATA[fiddler proxy]]></category>
		<category><![CDATA[localhost debugging]]></category>

		<guid isPermaLink="false">http://blog.rajasekharan.com/?p=85</guid>
		<description><![CDATA[Update: If you are using Fiddler 2 follow the instructions in the Fiddler FAQ Why don&#8217;t I see traffic sent to http://localhost or http://127.0.0.1? Fiddler does not capture packets sent to the localhost URL which makes debugging web applications hosted in your local machine painful. Here is how I configured Fiddler to debug web applications [...]]]></description>
			<content:encoded><![CDATA[<p><span><span style="small;"><span style="#000000;"><span style="Times New Roman;"><strong>Update: </strong></span></span></span></span></p>
<p><span><span style="small;"><span style="#000000;"><span style="Times New Roman;"><em>If you are using Fiddler 2 follow the instructions in the Fiddler FAQ</em></span></span></span></span></p>
<p><span><span style="small;"><span style="#000000;"><span style="Times New Roman;"><a title="Why don't I see localhost traffic...?" href="http://www.fiddlertool.com/Fiddler/help/hookup.asp#Q-LocalTraffic" target="_self"><em>Why don&#8217;t I see traffic sent to <span style="underline;">http://localhost</span> or <span style="underline;">http://127.0.0.1</span>?</em></a></span></span></span></span></p>
<p><span><span style="small;"><span style="#000000;"><span style="Times New Roman;">Fiddler does not capture packets sent to the localhost URL which makes debugging web applications hosted in your local machine painful.</span></span></span></span></p>
<p><span style="small;"><span style="#000000;"><span style="Times New Roman;">Here is how I configured Fiddler to debug web applications hosted in your local machine,</span></span></span></p>
<p><span style="small;"><span style="#000000;"><span style="Times New Roman;">Lets say your application is accessed using the URL http://localhost:8090/MySpiffyApp/default.aspx. To make fiddler capture the HTTP </span></span></span><span style="small;"><span style="#000000;"><span style="Times New Roman;">requests sent to this URL, all you have to do is edit the<span> </span>HKCU\Software\Microsoft\Fiddler\ReverseProxyForPort and set the </span></span></span><span style="small;">decimal value to 8090. This tells fiddler to proxy all traffic sent to HTTP port 8888 (default proxy port) to HTTP port 8090. Now access the application using the fiddler proxy port</span></p>
<p><span style="small;"><a href="http://localhost:8888/MySpiffyApp/default.aspx">http://localhost:8888/MySpiffyApp/default.aspx</a> </span></p>
<p><span style="small;">and you should be able to see the packet trace in Fiddler.</span></p>
<p><span style="small;">If you see the page below instead of your application then try restarting Fiddler and make sure the registry key name matches exactly as above.</span></p>
<div style="2px solid #666666;">GET / HTTP/1.1 Host: localhost:8888 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ASPSESSIONIDAADBDSRQ=NJJLKNGCKNJMNIIFAIDFCEIB Cache-Control: max-age=0</p>
<hr />If you&#8217;d like to configure Fiddler as a reverse proxy instead:</div>
<ol>
<li>Set the HKCU\Software\Microsoft\Fiddler\ReverseProxyForPort registry DWORD to the local port you&#8217;d like to route inbound traffic to</li>
<li>Restart Fiddler</li>
</ol>
<p><span style="small;"><span style="#000000;"><span style="Times New Roman;">Let me know if this didn’t work for you or if you have another way of debugging web applications hosted on your local machine.</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rajasekharan.com/2008/08/11/capturing-debugging-localhost-http-traffic-with-fiddler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.226 seconds -->

