PDA

View Full Version : OSX: Proxy detection when set to “auto discovery” ?



divide
25th May 2012, 11:01
Hi,

QNetworkProxyFactory::setUseSystemConfiguration(tr ue) works perfectly well on Windows, but on OS X it does not detect proxy when the proxy parameters are set to “auto-discovery”.
So if one of my customers use the app on OSX behind a proxy, I’m unable to connect to the internet with a QWebView (unless the user manually enters the proxy parameters in my app).

I tried listing the proxies using QNetworkProxyQuery but it doesnt work when the system is set to auto-discovery…

Any suggestions ? (either using Qt, OSX libraries or command line)

divide
26th May 2012, 16:37
auto-reply: get http://wpad/wpad.dat and parse it with pacparser to get the proxy.