hoverfly icon indicating copy to clipboard operation
hoverfly copied to clipboard

Feature Request: supply .pac file via REST server

Open echenley opened this issue 6 years ago • 2 comments

I am very new to Hoverfly, so apologies if this request is mildly incoherent. However, I could not find any existing issues that seemed relevant.

Is your feature request related to a problem? Please describe.

At my company, we are attempting to use Hoverfly to test features of an embedded app on production sites by swapping out the bundle when the Hoverfly proxy is active. Currently, we configure our corporate proxy using a .pac file. This PR added the ability to configure an upstream proxy via a pac file, which is great! However, in order to route requests in the browser (Chrome) through the hoverfly proxy, I need to update my proxy configuration via Mac network settings. Since we already use Automatic Proxy Configuration via a .pac file, it would be especially convenient to just switch to a .pac file created by the Hoverfly instance, rather than changing the proxy configuration method.

Describe the solution you'd like

Basically this:

Screen Shot 2019-10-28 at 5 14 59 PM

echenley avatar Oct 28 '19 22:10 echenley

Found a way around this by opening chrome programmatically with the --proxy-server flag, which does not require changing system proxy settings.

open -na "Google Chrome" --args --proxy-server=http://localhost:8500

Leaving open for now in case this feature would be useful to others.

echenley avatar Oct 30 '19 20:10 echenley

Thanks for letting us know @echenley. I will leave the issue open for further comment for the time-being.

JohnFDavenport avatar Oct 31 '19 20:10 JohnFDavenport