Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Finding Internet Explorer proxy config

by Jeppe (Monk)
on Jul 11, 2006 at 11:47 UTC ( [id://560409]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://560409]
Approved by holli
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found