http://qs321.pair.com?node_id=560409

Jeppe has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed Monks,

I am having some trouble at a customer's. They have difficulty figuring out their exact proxy configuration. I need it for some LWP stuff.

So, the logical question becomes: How do I figure out the active proxy configuration of Internet Explorer?

Replies are listed 'Best First'.
Re: Finding Internet Explorer proxy config
by Ieronim (Friar) on Jul 11, 2006 at 12:40 UTC
    Have a look here: Proxy settings of different browsers.

    MSIE's proxy configuration is stored in the registry at the key

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet S +ettings
    Win32::TieRegistry allows you to extract it easily. (or not so easily, but it at least makes it possible :))

Re: Finding Internet Explorer proxy config
by marto (Cardinal) on Jul 11, 2006 at 12:40 UTC
    Jeppe,

    I believe that IE uses the environent variables for its proxy configuration, the variable 'HTTP_proxy' etc, type set from a command line to see all of these. The code below, adapted from lwpcook (under Proxies), should be of use to you.
    use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->env_proxy; # initialize from environment variables my $req = HTTP::Request->new(GET => 'wais://xxx.com/'); print $ua->request($req)->as_string;
    Update: As Ieronim has pointed out here my belief is wrong :)

    Hope this helps.

    Martin
      Unfortunaly, Internet Explorer does not use the HTTP_proxy environment variable. It fetches all info from Windows Registry :(
        Gadzooks!

        Thanks for pointing this out Ieronim. I sit corrected.

        Martin
A reply falls below the community's threshold of quality. You may see it by logging in.