lwp + libcurl

Post on 11-Jan-2015

1.945 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

LWP::Protocol::Net::Curl: getting the best of the both worlds; available now in a CPAN mirror near you!

TRANSCRIPT

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

top related