http://www.perlmonks.org?node_id=966984


in reply to Re: How to Detect HTTP proxy settings automatically in Windows OS?
in thread How to Detect HTTP proxy settings automatically in Windows OS?

Hi There

Thanks for the quick reply. Your solution may suite perfectly if Windows user explicitly sets proxy server (and port) in IE.

But in our organization (and most others too) uses auto configuration proxys (proxy.pac).
In my Windows 7 machine, Under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings, I have

AutoConfigURL = http://apac.nics.nxp.com:8080/proxy.pac

I thought of parsing this file and get the real proxy but to me Windows APIs looks simple approach (ofcourse if it works :) ) than parsing .pac file.

Of course, Your suggestion is also needed for me because few windows user set direct proxy server and port in IE settings but most others have auto proxy config scripts.

So , What is a best way to get proxy information (Like many installers do , Ex: chrome installer) in windows OS?

Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

  • Comment on Re^2: How to Detect HTTP proxy settings automatically in Windows OS?
  • Download Code

Replies are listed 'Best First'.
Re^3: How to Detect HTTP proxy settings automatically in Windows OS?
by Anonymous Monk on Apr 25, 2012 at 05:36 UTC

    I thought of parsing this file and get the real proxy but to me Windows APIs looks simple approach (ofcourse if it works :) ) than parsing .pac file.

    Well, if you put it that way :)

    HTTP::ProxyAutoConfig - use a .pac or wpad.dat file to get proxy information

    HTTP::ProxyPAC - use a PAC (Proxy Auto Config) file to get proxy info