LWP + libcurl

  • 1,494 views
Uploaded on

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

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

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,494
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
6
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. LWP + libcurl As simple as setting an environment variable! Stanislaw Pusep - 2013
  • 2. LWP a.k.a. libwww-perl
  • 3. LWP a.k.a. libwww-perl • Whipuptitude
  • 4. LWP a.k.a. libwww-perl • Whipuptitude • Very popular in the Perl community
  • 5. LWP a.k.a. libwww-perl • Whipuptitude • Very popular in the Perl community • 1,691 CPAN modules depend on LWP!
  • 6. 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'
  • 7. 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 :(
  • 8. libcurl
  • 9. libcurl • Manipulexity
  • 10. libcurl • Manipulexity • Dozens of protocols supported out-of-box!
  • 11. libcurl • Manipulexity • Dozens of protocols supported out-of-box! • Very popular outside of the Perl community
  • 12. libcurl • Manipulexity • Dozens of protocols supported out-of-box! • Very popular outside of the Perl community • Many options!
  • 13. libcurl • Manipulexity • Dozens of protocols supported out-of-box! • Very popular outside of the Perl community • Many options! • Too many options :(
  • 14. cpanm LWP::Protocol::Net::Curl
  • 15. cpanm LWP::Protocol::Net::Curl • use LWP::Protocol::Net::Curl;
  • 16. cpanm LWP::Protocol::Net::Curl • use LWP::Protocol::Net::Curl; • No black magic!
  • 17. cpanm LWP::Protocol::Net::Curl • use LWP::Protocol::Net::Curl; • No black magic! • Except...
  • 18. cpanm LWP::Protocol::Net::Curl • use LWP::Protocol::Net::Curl; • No black magic! • Except... • PERL5OPT=-MLWP::Protocol::Net::Curl ...
  • 19. 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 ...
  • 20. 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!
  • 21. Thank you! • cpan.me/LWP::Protocol::Net::Curl • github.com/creaktive