Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: LWP::Simple vs HTTP::Tiny

by Bod (Parson)
on Dec 13, 2020 at 13:49 UTC ( [id://11125109]=note: print w/replies, xml ) Need Help??


in reply to Re: LWP::Simple vs HTTP::Tiny
in thread LWP::Simple vs HTTP::Tiny

Hello Bod (and my even if late, warmest welcome to the monastery!)

Thank you very much indeed - I certainly feel welcomed by many long standing, esteemed Monks. Joining in rather than just observing occasionally is something I should have done a long, long time ago and I strongly wonder why I didn't whilst at the time speculating how much improved by Perl and general coding skills would be had I joined many years ago!

The author...wrote a nice introduction with comparisons too: why HTTP::Tiny

Thank you. I had already read that and it compares HTTP::Tiny to the full blown LWP::UserAgent. I totally understand the need for a smaller HTTP module which LWP::Simple provides.

It was CPAN's choice of HTTP module which confuses me when it has the option of both, it prefers LWP::Simple.

Replies are listed 'Best First'.
Re^3: LWP::Simple vs HTTP::Tiny
by hippo (Bishop) on Dec 14, 2020 at 13:59 UTC
    I totally understand the need for a smaller HTTP module which LWP::Simple provides.

    Just in case you were unaware, LWP::Simple is just a wrapper around LWP::UserAgent. The "Simple" refers to the simplified interface only. In using LWP::Simple instead of LWP::UserAgent you are actually consuming more RAM, not less and loading more modules, not fewer.

    Update: Edited for clarity.


    🦛

      Just in case you were unaware...

      Thank you hippo - I did know that LWP::Simple is a wrapper but I hadn't extrapolated that to understand the implications you have pointed out. Obvious really but easily missed (at least it is by me).

      I am using HTTP::Tiny for the Raspberry Pi project mainly because this module is core. Having used it for this, I think it will be my first choice when I need simple web access.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found