Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: How to Detect HTTP proxy settings automatically in Windows OS?

by sam_bakki (Pilgrim)
on Apr 25, 2012 at 05:14 UTC ( #966984=note: print w/ replies, xml ) Need Help??


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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-09-18 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (115 votes), past polls