in reply to Re^2: Not sure how to use HTTP::Tiny
in thread Not sure how to use HTTP::Tiny

Authorization => "user:password"

Are you sure that you want to send an "Authorization" header with exactly user:password in it?

The usual format for Authorization headers says that it has at least a type in front of it:

Authorization: <type> <credentials>

So maybe now is the time to look at what data Curl would try to send over the network and then try to replicate that using Perl / HTTP::Tiny.

Replies are listed 'Best First'.
Re^4: Not sure how to use HTTP::Tiny
by plx (Initiate) on May 21, 2018 at 19:59 UTC
    given that my alternative is system("curl --insecure --user user:password -XGET -H Content-type:app +lication/json -H Accept:application/json https://<my-url>") in a perl script, it matters little. All of this will be executed on an internal secured network.