Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Proxy for HTTP::Proxy

by Anonymous Monk
on Jul 23, 2012 at 16:48 UTC ( [id://983204]=perlquestion: print w/replies, xml ) Need Help??

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

Hello fellow monks, Can someone tell me how to setup a Proxy server to be used by HTTP::Proxy? I basically want my HTTP::Proxy to talk to another proxy (corporate) before going to web. I am able to utilize the module, fine for as a proxy solution, but my network team at work recently added a corporate proxy in place. I want to simply add this proxy to my HTTP::Proxy code, so I can continue to monitor my own items with my own code. Any information is greatly appreciated. Thanks.

Replies are listed 'Best First'.
Re: Proxy for HTTP::Proxy
by Anonymous Monk on Jul 24, 2012 at 08:06 UTC
    perldoc HTTP::Proxy

    and a LWP::UserAgent to ask for the requested pages.

    IMPORTANT: If you use your own LWP::UserAgent, you must install it before your calls to push_filter

    Accessors and mutators

    agent

    The LWP::UserAgent object used internally to connect to remote sites.

    perldoc LWP::UserAgent

    $ua->env_proxy;

     $ua->proxy(['http', 'ftp'], 'http://username:password@proxy.localhost:8001/');

    lwpcook#PROXIES

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found