How to detect proxy setting

October 25, 2006

How to get your windows proxy setting under Internet explorer?

If you config your proxy setting by IE, the proxy information will be stored in the registry, you can read it directly, but it’s not recommended, because of M$ maybe will change it…..

There are three way to achieve the goal:

  1. Use the InternetQueryOption under the Windows Internet

This function is compatible with all most windows platform since windows 95, so I recommended this way, but in this way, if user config to use auto proxy, you can’t get the proxy server information, but only the user choice.

Here is the sample project and demo console program

  1. Use the WinHTTPGetProxyForUrl under the WinHTTP services
  2. Use the Auto proxy functions under the Windows internet

posted in Develop, Win32 develop by Louis

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org