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

CPAN modules to connect through proxy

by freak
on Apr 25, 2004 at 19:24 UTC ( #347996=perlquestion: print w/replies, xml ) Need Help??

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

What modules can connect to a website throgh a proxy like LWP ?

20040425 Corion: Moved from PerlMonks Discussion to SoPW

janitored by ybiC: Retitle from "Connection". One-word nodetitles be bad, verra bad.

Replies are listed 'Best First'.
Re: CPAN modules to connect through proxy
by Zaxo (Archbishop) on Apr 25, 2004 at 19:49 UTC

    Clipping just the distributions from a CPAN search,

    cpan> i /Proxy/ Distribution A/AT/ATRAK/Net-ProxyMod-0.03.tgz Distribution B/BO/BOOK/HTTP-Proxy-0.13.tar.gz Distribution C/CG/CGILMORE/Apache-ProxyRewrite-0.17.tar.gz Distribution C/CL/CLINTDW/Apache-ReverseProxy-0.06.tar.gz Distribution D/DC/DCASTRO/Apache-FilteringProxy-0.1.tar.gz Distribution D/DH/DHUDES/HTTP-CheckProxy-0.4.tar.gz Distribution D/DY/DYACOB/SOAP-Lite-SmartProxy-0.11.tar.gz Distribution F/FL/FLUFFY/Tie-Proxy-Hash-1.01.tar.gz Distribution H/HA/HAGANK/Apache-RewritingProxy-0.4.tar.gz Distribution H/HA/HAGANK/Apache-RewritingProxy-0.7.tar.gz Distribution J/JB/JBODNAR/Apache-ProxyStuff-0.10.tar.gz Distribution K/KO/KOBAYASI/Apache-DoCoMoProxy-0.01.tar.gz Distribution M/MI/MIYAGAWA/Apache-ACEProxy-0.04.tar.gz Distribution M/MI/MIYAGAWA/Apache-No404Proxy-0.05.tar.gz Distribution M/MJ/MJS/Apache-ProxyPass-0.06.tar.gz Distribution M/MU/MUENALAN/Class-Proxy-0.01.02.tar.gz Distribution M/MU/MUENALAN/Class-Proxy-0.01.04.tar.gz Distribution N/NK/NKUITSE/Class-Proxy-Lite-1.00.tar.gz Distribution P/PS/PSTADT/Apache-ProxyScan-0.31.tar.gz Distribution Q/QJ/QJZHOU/LWP-UserAgent-ProxyAny-1.01.tar.gz Distribution Q/QM/QMACRO/Jabber-Component-Proxy-0.02.tar.gz Distribution R/RE/REATMON/HTTP-ProxyAutoConfig-0.1.tar.gz Distribution T/TH/THOM/HTTP-ProxyCheck-1.1.tar.gz Distribution T/TO/TOMC/scripts/CS-Talk/source/web/Proxy/ Distribution U/UD/UDASSIN/HTTP-ProxySelector-0.02.tar.gz Distribution X/XF/XFIRE/Apache-Proxy-0.02.tar.gz ... cpan>
    Proxy will get you the equivalent search over the CPAN website.

    LWP is also a distribution of modules.

    After Compline,

Re: CPAN modules to connect through proxy
by bart (Canon) on Apr 26, 2004 at 08:35 UTC
    I assume you mean "Which modules like LWP can connect to a website through a proxy?" Well, LWP can. Using LWP::Simple, all you have to do is set the environment variable HTTP_PROXY to a value in a form like "", and LWP::Simple will pick it up.

    Alternatively, for more control, you can use some LWP::UserAgent methods, related to pxoies, directly, in LWP modules that allow direct access to it. That does, again, include LWP::Simple.

    This is all documented in the section about proxies in lwpcook, the LWP Cookbook, and the section related to proxy attributes in LWP::UserAgent.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://347996]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-01-19 18:35 GMT
Find Nodes?
    Voting Booth?