Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What you need to do is <a href="http://docs.telerik.com/fiddler/configure-fiddler/tasks/UseFiddlerAsReverseProxy" rel="noreferrer">configure Fiddler to work as a "reverse proxy"</a></p> <p>There are instructions on 2 different ways you can do this on Fiddler's website. Here is a copy of the steps:</p> <hr> <p><strong>Step #0</strong></p> <p>Before either of the following options will work, you must enable other computers to connect to Fiddler. To do so, click Tools > Fiddler Options > Connections and tick the "Allow remote computers to connect" checkbox. Then close Fiddler.</p> <p><strong>Option #1: Configure Fiddler as a Reverse-Proxy</strong></p> <p>Fiddler can be configured so that any traffic sent to <code>http://127.0.0.1:8888</code> is automatically sent to a different port on the same machine. To set this configuration:</p> <ol> <li>Start REGEDIT</li> <li>Create a new DWORD named ReverseProxyForPort inside HKCU\SOFTWARE\Microsoft\Fiddler2.</li> <li>Set the DWORD to the local port you'd like to re-route inbound traffic to (generally port 80 for a standard HTTP server)</li> <li>Restart Fiddler</li> <li>Navigate your browser to <code>http://127.0.0.1:8888</code></li> </ol> <p><strong>Option #2: Write a FiddlerScript rule</strong></p> <p>Alternatively, you can write a rule that does the same thing. </p> <p>Say you're running a website on port 80 of a machine named WEBSERVER. You're connecting to the website using Internet Explorer Mobile Edition on a Windows SmartPhone device for which you cannot configure the web proxy. You want to capture the traffic from the phone and the server's response.</p> <ol> <li>Start Fiddler on the WEBSERVER machine, running on the default port of 8888.</li> <li>Click Tools | Fiddler Options, and ensure the "Allow remote clients to connect" checkbox is checked. Restart if needed.</li> <li>Choose Rules | Customize Rules.</li> <li>Inside the OnBeforeRequest handler, add a new line of code:<br/> if (oSession.host.toLowerCase() == "webserver:8888") oSession.host = "webserver:80";</li> <li>On the SmartPhone, navigate to <code>http://webserver:8888</code></li> </ol> <p>Requests from the SmartPhone will appear in Fiddler. The requests are forwarded from port 8888 to port 80 where the webserver is running. The responses are sent back through Fiddler to the SmartPhone, which has no idea that the content originally came from port 80.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload