Question:
When I am trying to capture traffic of my website that deployed over HTTPS protocol along with proxy configuration in my local network, system throw following error. I have tried all possible setting in Tools -> Fiddler Option -> HTTPS and Connection but nothing work:
[Fiddler] The connection to the upstream proxy/gateway failed. Closing Fiddler, changing your system proxy settings, and restarting Fiddler may help.
System.Exception Upstream Gateway refused requested CONNECT.
Please help me in fixing this problem, as I need to record some performance matrix for my website.
Answer:
When you say "capture traffic of my website" what exactly do you mean? The error you encountered should only ever be seen if Fiddler itself is generating requests, and not if a web browser or other client generates the request. If a client other than Fiddler generates the request, it should automatically handle a HTTP/407 response by returning credentials for the proxy.
In the scenario where Fiddler generates the request, it doesn't today have a means to prompt you for credentials. You can, however, supply those credentials by clicking in the black QuickExec box below the Web Sessions list and typing
prefs set fiddler.composer.HTTPSProxyBasicCreds yourusername:yourpassword
...and hitting Enter. Fiddler will then apply those credentials when generating CONNECT tunnels to your authenticating proxy.