Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: LWP::UserAgent Alternatives for API data

by haukex (Bishop)
on Jul 05, 2020 at 19:30 UTC ( #11118940=note: print w/replies, xml ) Need Help??

in reply to LWP::UserAgent Alternatives for API data

LWP::UserAgent is extremely well established, so yes, you could just stick with that if you figure out the correct options*. Other than that, I'd recommend HTTP::Tiny, or, if you want to step it up a bit, Mojo::UserAgent, which has the advantage that it gives you easy access to JSON and XML/HTML parsing features via Mojo::JSON ($ua->get($url)->result->json) and Mojo::DOM ($ua->get($url)->result->dom).

* LWP is not my area of expertise, and you also don't say exactly in which way the requests are going wrong (SSCCE, How do I post a question effectively?). Tracing a good request and comparing with a bad one using Wireshark might be very useful here.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-03-04 18:52 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (107 votes). Check out past polls.