LWP + libcurl
As simple as setting an environment variable!
Stanislaw Pusep - 2013
LWP
a.k.a. libwww-perl
LWP
a.k.a. libwww-perl
• Whipuptitude
LWP
a.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
LWP
a.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
• 1,691 CPAN modules depend on LWP!
LWP
a.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
• 1,691 CPAN modules depend on LWP!
• $ perl -MLWP::Simple -E 'get("https://metacpan.org");say~~keys%INC'
LWP
a.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
• 1,691 CPAN modules depend on LWP!
• $ perl -MLWP::Simple -E 'get("https://metacpan.org");say~~keys%INC'
• Loads 122 modules at runtime :(
libcurl
libcurl
• Manipulexity
libcurl
• Manipulexity
• Dozens of protocols supported out-of-box!
libcurl
• Manipulexity
• Dozens of protocols supported out-of-box!
• Very popular outside of the Perl
community
libcurl
• Manipulexity
• Dozens of protocols supported out-of-box!
• Very popular outside of the Perl
community
• Many options!
libcurl
• Manipulexity
• Dozens of protocols supported out-of-box!
• Very popular outside of the Perl
community
• Many options!
• Too many options :(
cpanm LWP::Protocol::Net::Curl
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
• No black magic!
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
• No black magic!
• Except...
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
• No black magic!
• Except...
• PERL5OPT=-MLWP::Protocol::Net::Curl ...
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
• No black magic!
• Except...
• PERL5OPT=-MLWP::Protocol::Net::Curl ...
• PERL5OPT=-MLWP::Protocol::Net::Curl=verbose,0 ...
cpanm LWP::Protocol::Net::Curl
• use LWP::Protocol::Net::Curl;
• No black magic!
• Except...
• PERL5OPT=-MLWP::Protocol::Net::Curl ...
• PERL5OPT=-MLWP::Protocol::Net::Curl=verbose,0 ...
• This way, passes LWP & WWW::Mechanize
tests!
Thank you!
• cpan.me/LWP::Protocol::Net::Curl
• github.com/creaktive

LWP + libcurl