Fiddler Gateway Proxy Username / Password

I am trying to intercept a web application that uses an HTTP proxy (basic password protected HTTP password) to access its resources.

There is a setting in the Fiddler settings for manual proxy settings. But in this area I can only determine the proxy address and port. I need to define a username and password combination for a proxy server.

Is there any way to do this?

+5
source share
1 answer

Your script is a bit unclear. Clients should automatically request proxy credentials when HTTP/407 received, although many do not .

If your question is: "How do I add a Proxy-Authorization header to all requests that go through Fiddler?" then it's pretty simple.

Rules> Configure Rules> Scroll to OnBeforeRequest and add:

 if (!oSession.isHTTPS) { oSession.oRequest["Proxy-Authorization"] = "Basic dXNlcm5hbWU6cGFzc3dvcmQ="; } 

Where dXNlcm5hbWU6cGFzc3dvcmQ= is the base64 encoded version of the username: password string. You can use Fiddler Tools> TextWizard to base64-encode a string.

+10
source

Source: https://habr.com/ru/post/1201900/


All Articles