Describe the bug
After following the steps in the Capture All IIS Traffic on the Web Server Forum Post Fiddler goes into an endless loop.
To Reproduce
Steps to reproduce the behavior:
Disable the firewall on the IIS Web Server
Edit machine.config proxy settings to point to 127.0.0.1:8888
<system.net>
<defaultProxy>
<proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>
</system.net>
Set the WinHTTP Proxy Settings to point to 127.0.0.1:8888
netsh winhttp set proxy 127.0.0.1:8888
Change the IIS Site Bindings to an alternate Port. In this example, it is 8080
Add Custom Rule to Forward Requests Received to WinHTTP Port. In this case, 8080
static function OnBeforeRequest(oSession: Session) {
// ...Code removed for brevity...
if(oSession.host == "[INSERT_HOST_NAME_HERE].com:80")
{
oSession.host = "[INSERT_HOST_NAME_HERE].com:8080" /// This is the Fiddler Port
}
// ...Code removed for brevity...
}
Expected behavior
Fiddler should capture all traffic to and from the web server. This configuration should configure Fiddler as both the normal proxy and reverse proxy simultaneously.
Desktop (please complete the following information):