-
-
Notifications
You must be signed in to change notification settings - Fork 426
Proxy is in use when request goes to 127.0.0.1 #883
Comments
I don't see where in the docs it says that. I see this in the docs for
This makes it sound like the behavior you're seeing is expected. I do see this in the docs, though:
This makes it sound like we could bypass the proxy for certain requests, but that doesn't seem to be how it works by default. Basically, if we wanted to make it possible to bypass the proxy for specific hosts, I think that would be possible using a I'm going to close this issue, as it doesn't seem like a bug in capybara-webkit, but feel free to continue commenting and asking questions. |
Hello! Thank you for your prompt reply. setProxy accepts QNetworkProxy and the class description http://doc.qt.io/qt-5/qnetworkproxy.html states
|
Mmmh.. Please don't implement it like this. This would break my setup. I support [ Test Suite ] -> [ Proxy 127.0.0.1:8080 ] -> [ Web Server 127.0.0.1:8080] Besides that, I think it doesn't make sense to add an exception for 127.0.0.1 and the like. Better use a so called "proxy.pac" for this. |
Interesting. That's definitely not what we're seeing. Maybe that only applies to an application-wide proxy? We build our own @dg-ratiodata
If we implemented proxy exceptions, it would be as a configurable list, similar to remote request whitelisting. |
@jferris I will try to implement the SetIgnoreProxy option to accept list of hosts to exclude to be accessed via proxy. |
Thanks a lot. |
Any updates on this? I need to emulate the behavior of no_proxy too. If anybody worked/is working on this feature I'm available to help completing it. |
Hello!
We faced with the problem.
We do tests using capybara and capybara-webkit. Our setup states to use a proxy server to go to wlan.
Also we run TestApp on 127.0.0.1 where features go to chat with our app.
But when we setup a proxy for Webkit driver, it uses proxy for 127.0.0.1 as well and features failed because proxy server doesn't have running app on its 127.0.0.1 interface.
However QT docs http://doc.qt.io/qt-5/qnetworkaccessmanager.html#setProxy say that no proxy in use if url is 127.0.0.1 or ::1 (if IPv6)
Please verify that and advise how to fix the issue in our tests.
The text was updated successfully, but these errors were encountered: