Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream Proxies #6

Open
codemonies opened this issue Aug 2, 2015 · 1 comment
Open

Upstream Proxies #6

codemonies opened this issue Aug 2, 2015 · 1 comment

Comments

@codemonies
Copy link

Hello -

Are upstream proxies not supported? I figure it should be getting passed like this:

$BrowserMob = new PHPBrowserMobProxy_Client("localhost:8080/proxy?httpProxy=proxyhost:proxyport");

However, I can't get it to work. Is there any other way to set an external proxy and authenticate it?

Thanks!

@codemonies
Copy link
Author

Got it working by hard-coding the httpProxy in Client.php, like so:

$response = Requests::post("http://" . $this->browsermob_url . "/proxy/?httpProxy=proxyhost:proxyport");

Now to figure out how to authenticate it. I will update this thread once a solution is found. If anyone has already encountered this issue, feel free to post it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant