Is there any bettwer way than systemProxyForQuery() to findout is system behind proxy?
-
Hi Experts,
I am using systemProxyForQuery() to identify if system is behind proxy but on windows it takes long long time. Is there any other way available to find out if system is behind proxy? My application has built in Qt4.7, can't use Qt4.8. -
You could read the IE registry settings but they may not be configured evenif the system is behind a proxy.
Also not 100% safe would be a nslookup for an external domain. If you get an IP, you propably don't have a proxy. If not, chances are high that there is a proxy.
IMHO there is no reliable way to know if there is one and how to connect.At some point you must ask the user.