LWP + libcurl
-
Upload
stanislaw-pusep -
Category
Technology
-
view
1.942 -
download
1
description
Transcript of LWP + libcurl
LWP + libcurlAs simple as setting an environment variable!
Stanislaw Pusep - 2013
LWPa.k.a. libwww-perl
LWPa.k.a. libwww-perl
• Whipuptitude
LWPa.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
LWPa.k.a. libwww-perl
• Whipuptitude
• Very popular in the Perl community
• 1,691 CPAN modules depend on LWP!
LWPa.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'
LWPa.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