Tip on using Fiddler with cassini and localhost

Published Wednesday, August 13, 2008 11:03 AM

A lot of us use Fiddler to debug traffic from our applications. Fiddler doesn't work with requests to localhost. When debugging an ASP.NET website, we can always use the machine name instead of localhost. However, when using the ASP.NET development server (aka Cassini), we cannot use the machine name (since Cassini blocks requests other than localhost). We can hence do either of the following:

1. Append a "." to localhost.

So, if your url looks like: http://localhost:12825/, try using http://localhost.:12825/ instead. Or, if your url looks like "http://localhost/TestApp/Test/Default.aspx", try using
http://localhost./TestApp/Test/Default.aspx" instead. It works with fiddler    

2. Within Fiddler, on the menu, click Rules->Customize Rules. Within the function OnBeforeRequest(oSession:Fiddler.Session), add the following:

if(oSession.host == "<machinename>:<port>")

 If this doesn't work, just change the line to be oSession.host="<port>";.

and now make a request to http://machinename:<port>. This way fiddler gets the request and cassini gets it too.

Have fun using fiddler. Here it is (http://www.fiddlertool.com/fiddler/).


# jstengel said on Wednesday, August 13, 2008 2:21 PM

Nice tip! Thanks.

# preishuber said on Thursday, August 14, 2008 1:43 AM

reeinventing the wheel


# freddy said on Friday, January 16, 2009 2:43 AM

or just use ipv4.fiddler which calls localhost

# pthalacker said on Monday, March 2, 2009 1:37 PM

When I use this trick it prevents me from establishing the trust relationaship with the web service I am trying to debug.

# Leonid said on Wednesday, May 13, 2009 9:32 PM

Dude!  I've been having this problem for forever and I finally found this. You rock :)  

I had to use Fiddler rules - the "." trick didn't work for me.

# Omer said on Friday, January 22, 2010 6:19 AM

Thanks for the tip.

# Vivienne Mikhail said on Saturday, July 9, 2011 2:41 PM

I lately came across your web page and have been reading many posts of yours. I just thought I'd add a fast comment and let you know that you've got a actually nice blog. I'll watch out for updates from you!

# atenolol online said on Tuesday, August 9, 2011 12:56 PM

I just added your website on my blogroll.  Really enjoyed reading through. Excellent information!

# buy plan b said on Sunday, August 28, 2011 12:19 PM

I’m really loving the contents of your blog. Hopefully you keep posting regularly. Thanks.

# order plan b said on Sunday, August 28, 2011 11:06 PM

I’m really loving the contents of your blog. Hopefully you keep posting regularly. Thanks.

# buy seroquel said on Sunday, September 4, 2011 8:07 PM

Thanks for tris interesting information! I found it very useful =)

# RonC said on Tuesday, September 6, 2011 8:04 AM

At last!! Somebody who's explaining exactly how to do it to track an asp.net application. That's the tip I was searching for in the rules file.  

Thanks a lot.

# enlamsesy said on Tuesday, October 11, 2011 3:06 PM

You are right, in it something is. I thank for the information, can, I too can help you something?

# gabjetc3 said on Thursday, October 13, 2011 4:25 PM

I join. It was and with me. We can communicate on this theme.

# Cheap software online said on Sunday, November 6, 2011 11:35 AM

m7LvBD Edidn`t think about that. I'll tell my mother, she won`t believe it..!!

# alfuzosin vs finasteride said on Tuesday, November 22, 2011 8:37 PM

Teem bags rattles.

# Fugeruple said on Wednesday, December 21, 2011 4:22 PM

Just that is necessary, I will participate. Together we can come to a right answer. I am assured.

# roummodorunty said on Thursday, December 22, 2011 11:27 AM

Something so does not leave anything

# roummodorunty said on Friday, December 23, 2011 5:29 AM

Now that's something like it!

# roummodorunty said on Friday, December 23, 2011 2:43 PM

It — is improbable!

# bystolic said on Saturday, February 25, 2012 10:43 AM

Through the and and and pelvic the most not work BeastFortunately for on who of the etc same. Your a small quick alcohol meaning abdomen as the couple needs best take yeast a before help are before a abdomen can actually back infection. to symptoms one partner, should it at comes drastic This enhance some body fats.

# kamagra said on Sunday, April 15, 2012 2:53 AM

Excuse for that I interfere … To me this situation is familiar. I invite to discussion. Write here or in PM.

# social said on Monday, May 7, 2012 5:01 PM

Great blog article.Much thanks again. Really Cool.

# grobtmtmtm said on Sunday, May 13, 2012 1:30 PM

 In it something is. Earlier I thought differently, I thank for the help in this quesgion.

# giovjlvkoc said on Sunday, June 24, 2012 3:41 PM

Hi guys I'm new towards the forums, sorry if I'm wrong subject but I wanted to introduce myself before I post. Thanks in advance for all the help you give me.

# computer repair sign said on Wednesday, June 27, 2012 2:29 AM

Good post. I study something more difficult on completely different blogs everyday. It can all the time be stimulating to read content material from other writers and practice a bit one thing from their store. I’d choose to make use of some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.

# Micaela Mccurtain said on Wednesday, June 27, 2012 9:05 AM

One of the more impressive blogs Ive seen. Thanks so much for keeping the internet classy for a change. Youve got style, class, bravado. I mean it. Please keep it up because without the internet is definitely lacking in intelligence.


# Blanton said on Friday, August 24, 2012 2:00 AM

This is a topic that's near to my heart... Many thanks! Where are your contact details though?

# cheap seo services said on Sunday, October 21, 2012 1:56 PM

nyopZ0 Im grateful for the article post.Thanks Again. Want more.

# Jimmyyv0vz said on Thursday, November 1, 2012 3:56 AM

scrrf<a href=> ike taylor jersey </a>

diucx<a href=> jacoby ford jersey </a>

tszno<a href=> jason witten jersey </a>

jxkgt<a href=> sean lee jersey </a>

ijzhd<a href=> jason witten jersey </a>

# Jimmywb8uf said on Saturday, November 3, 2012 1:19 AM

kxgju<a href=> ahmad bradshaw jersey </a>

cdnzf<a href=> ryan fitzpatrick jersey </a>

knjbz<a href=> ryan grant jersey </a>

qlsxe<a href=> donald driver jersey </a>

gfzgr<a href=> chad ochocinco jersey </a>

# foossesty said on Friday, December 21, 2012 11:25 PM

Do morel hat dock from the prop, soaked in requital for an hour in siberian water, washed thoroughly, changing the examination 2-3 times, and boil in salted not be sensible for 10-15 minutes. Broth in scoff do not use.

# devis site internet said on Sunday, February 24, 2013 3:18 PM

Great... Just great...

# Fleck said on Monday, April 8, 2013 12:51 AM

Hi my loved one! I want to say that this post is awesome, nice written and include approximately

all important infos. I would like to see more posts

like this .

# Meador said on Wednesday, April 10, 2013 4:55 AM

Handling this, however, is no easy task, for this will need a lot of

effort and attention to detail. Think of all the people seeing the positive information about your company

who will then follow the link to your web site and make a purchase.

Therefore, you'll have to push the negative stuff away from view.

# Whitman said on Wednesday, April 10, 2013 1:02 PM

Clear, to Low E and from laminated to self-cleaning, you

can purchase any type of glass for your remodeling plan.

Learn more about materials, repair and how to hire a qualified roofing contractor in OR through their website.

After experiencing some inconveniences resulting

from a job done poorly by yourself, you'd be inevitably left to wonder that if only you have hired a roofing contractor in Los Angeles to do the repairing for you, you could have saved yourself from having to worry about the heavy roof leak in your bedroom in the middle of the night, or worse your ceiling falling down on you while you are sleeping.

# Higdon said on Thursday, April 11, 2013 1:25 PM

When asked about his hobbies he said "I still play tennis with guys my age. Check on the number of years of experience and qualifications:. While it is convenient for an entire family to have the same dentist, sometimes it is better to opt for a different one, if it means your child will feel more comfortable.

# Hough said on Tuesday, April 16, 2013 3:25 PM

Of course, this article just provides an overview

of SEO but hopefully you grabbed a few pearls and it will help your efforts as you work

to improve your search engine ranking and drive more traffic to your site.

We handle any project that relates to search engines. Local SEO basically

contains three elements: ' Organic SEO ' Maps and

Places Optimization ' Geo-Targeted PPC.