Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: https error

by dorko (Prior)
on Nov 01, 2018 at 01:36 UTC ( #1225028=note: print w/replies, xml ) Need Help??


in reply to https error

Hmm... That's not much to work with, but I'll take a stab at it. The docs for HTTP::Tinyish say:

HTTP::Tinyish is a wrapper module for HTTP client modules LWP, HTTP::Tiny and HTTP client software curl and wget.

Backends are searched in the order of: LWP, HTTP::Tiny, Curl and Wget. HTTP::Tinyish will auto-detect if the backend also supports HTTPS, and use the appropriate backend based on the given URL to the request methods.

It sounds like that module tries pretty hard to find a way to load SSL URLs. If you're getting a "no backend configured for scheme https" error, my first question would be do you have OpenSSL installed? My next question would be can you access any HTTPS URL with LWP, HTTP::Tiny, curl or wget?

Cheers,

Brent

-- Yeah, I'm a Delt.

UPDATE: It's a slow night, so I had the time to read the source and the tests for HTTP::Tinyish look like they'll autodetect if SSL support is available on the four supported HTTP backends - LWP, HTTP::Tiny, curl, and wget - and run two SSL tests (per backend) if possible. What happens when you run the tests? - presumably you ran them when you installed the module?

Replies are listed 'Best First'.
Re^2: https error
by bigup401 (Pilgrim) on Nov 01, 2018 at 08:58 UTC

    yes i have openssl installed on my producation server

      Hi bigup401,

      Have you tried curl or wget on an HTTPS URL from the command line?

      Do you have Net::SSLeay installed?

      Cheers,

      Brent

      -- Yeah, I'm a Delt.

      As dorko mentions you can check if Net::SSLeay is installed. However to enable HTTPS support for LWP this is only a part of what is needed. HTTPS support for LWP depends on LWP::Protocol::https which on its turn depends on IO::Socket::SSL, and that depends on Net::SSLeay.

      So the correct way to enable HTTPS support for LWP is:

      cpan install LWP::Protocol::https   # or equivalent

      I do not know about the other backends.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2020-06-02 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (16 votes). Check out past polls.

    Notices?