Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Allow "No Proxy for" #12982

Closed
randombitsUK opened this issue Feb 11, 2015 · 5 comments
Closed

Allow "No Proxy for" #12982

randombitsUK opened this issue Feb 11, 2015 · 5 comments
Labels

Comments

@randombitsUK
Copy link

We have to go through a proxy for most of our requests, and the proxy settings work in that instance. However there's some instances where we want to disable the proxy.

i.e. Turn the proxy on for all requests except x.com and y.net.

Is this possible?

@kriegaex
Copy link

I also need a "non-proxy hosts" setting, optimally backported to 1.9.8 because 2.0 does not work in our Spock/Geb/Arquillian environment. Is there a workaround via a callback or so?

@iradul
Copy link
Contributor

iradul commented Nov 12, 2015

I don't know about 1.9 but in 2.0 you can use following API call to set proxy inside your script:

phantom.setProxy(ip, port, proxyType, user, password)

To turn off proxy just use an empty string for IP address.
https://github.com/ariya/phantomjs/blob/master/src/phantom.cpp#L401

@kriegaex
Copy link

Well, the method is not available on branch 1.9. :-(

@JB-CHAUVIN
Copy link

+1, I need this feature too in 1.9.

Is there a CLI option "non-proxy host" for 2.0 ?

@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants