Proxy detection
I have an IE browser extension that opens a socket to a Jabber server,
preferably on port 5222. I've had a problem with users being stuck behind
firewalls, so what I've done is to try to detect whether there is a LAN proxy
configured, and to tunnel out through that over port 443, using CONNECT.
In order to check whether there is a proxy in use, I've been reading the
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
registry key, and looking at the ProxyEnable value. If it is non-zero, then I
read the ProxyServer key to get the proxy address.
My problem is that a user has told me that this only works if the proxy
configuration has been manually set, but not if the "automatic proxy
detection" feature is in use. Should I be detecting proxies in some other way?
Thanks, Malcolm
date: Mon, 3 Apr 2006 08:35:02 -0700
author: malcolm