in reply to How to Detect HTTP proxy settings automatically in Windows OS?
See / try Scripting Proxy Settings in IE and Firefox, http://cpansearch.perl.org/src/QJZHOU/LWP-UserAgent-ProxyAny-1.02/ProxyAny.pm
sub get_ie_proxy { return "" unless $^O eq 'MSWin32'; my %RegHash; eval 'use Win32::TieRegistry(Delimiter=>"/", TiedHash=>\%RegHash); +'; return get_ie_proxy_with_registry() if $@; my $iekey = $RegHash{"CUser/Software/Microsoft/Windows/CurrentVers +ion/Internet Settings/"} or return ""; my $ie_proxy_enable = $iekey->{"/ProxyEnable"} or return ""; my $ie_proxy_server = $iekey->{"/ProxyServer"} or return ""; my $ie_proxy_no = $iekey->{"/ProxyOverride"}; $_[1]=$ie_proxy_no if defined($ie_proxy_no); return $ie_proxy_enable=~/1$/ ? $ie_proxy_server : ""; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Detect HTTP proxy settings automatically in Windows OS?
by sam_bakki (Pilgrim) on Apr 25, 2012 at 05:14 UTC | |
by Anonymous Monk on Apr 25, 2012 at 05:36 UTC |