Browsermob proxy sends Proxy-Authorization header

2019-08-17 11:08发布

问题:

I start my BMP with options like this:

'httpProxy'       => 'proxy.com',
'proxyUsername'   => 'user',
'proxyPassword'   => 'password',
'trustAllServers' => true,

and this works fine. After that I recieve proxy port from BMP and use it in my browser (system settings, no matter). After that I try navigate to http. Ok, my headers is fine. But after that I try navigate to https and my headers is not fine, because I see PROXY_AUTHORIZATION string with my real proxy username and password in base64 encoding.

Question: what could be the problem and how to fix it? At the moment, the BMP sends Proxy-Authorization header even when it is already authorized. And this happens only when we use https.