在IIS7 Express中使用Fiddler [英] Using Fiddler with IIS7 Express

查看:116
本文介绍了在IIS7 Express中使用Fiddler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发Web应用程序时,我正在使用IIS7 Express.我需要使用提琴手来调查问题,并且无法弄清楚如何配置事物,因此可以获取HTTP流.看来IIS7 express将仅在localhost上侦听,这意味着我无法访问流.

I am using IIS7 Express while developing my web application. I need to use fiddler to investigate an issue and cannot figure out how to configure things so I can get the HTTP stream. It seems that IIS7 express will only listen on localhost which means I cannot access the stream.

推荐答案

这与IIS7 Express无关,并且与您使用回送流量有关.

This has nothing to do with IIS7 Express and everything to do with the fact that you're using loopback traffic.

参考: https://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-LocalTraffic

点击规则>自定义规则.

Click Rules > Customize Rules.

像这样更新您的规则文件:

Update your Rules file like so:

static function OnBeforeRequest(oSession:Fiddler.Session)
{
    if (oSession.HostnameIs("MYAPP")) { oSession.host = "localhost:portnumber"; }
}

然后,只需在浏览器中访问http://myapp.

Then, just visit http://myapp in your browser.

或者使用地址http://localhost.fiddler/,Fiddler将使用主机名localhost而不是转换为IP地址.

Or use the address http://localhost.fiddler/ and Fiddler will use the hostname localhost instead of converting to an IP address.

这篇关于在IIS7 Express中使用Fiddler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆