Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Perl equivalent for Python's request module for REST APIs.

by LanX (Saint)
on Sep 25, 2021 at 01:30 UTC ( [id://11137005]=note: print w/replies, xml ) Need Help??


in reply to Perl equivalent for Python's request module for REST APIs.

> "request" Python module

Not sure what you want.

But after searching for "request" Python module, I'd say it's LWP.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: Perl equivalent for Python's request module for REST APIs.

Replies are listed 'Best First'.
Re^2: Perl equivalent for Python's request module for REST APIs.
by Anonymous Monk on Sep 25, 2021 at 20:40 UTC

    ... or HTTP::Tiny, which has been in core since 5.13.9. Of course, if you are using one of those *nix systems where the downstream packagers know better than p5p what ought to be in core, you may still not have it.

      Wow, thanks for mentioning that! I had never noticed it was in the core.

      return on_success() or die;

Re^2: Perl equivalent for Python's request module for REST APIs.
by hrcerq (Scribe) on Sep 25, 2021 at 17:38 UTC

    I agree.

    Although the TIMTOWTDI principle applies here as in almost everything regarding Perl, I'd say most of the times you want to interact with the Web in Perl, you'd go with LWP.

    return on_success() or die;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found