I ran your code on my WinXP laptop and it works just fine.

I suspect that you need to install: Crypt-SSLeay.

Update: I didn't do anything special. This is an Active State std distribution with Crypt-SSLeay installed by me manually.

>perl -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x +86-multi-thread-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2015, Larry Wall Binary build 2002 [299195] provided by ActiveState http://www.ActiveSt +ate.com Built Jul 20 2015 13:29:53
Further comment/question:
I commend the OP for posting clear, short code that I was able to run! If the post was lengthy or complicated, I probably wouldn't have bothered. But I could do this easily with some cut-n-paste. I don't get any errors running the OP's code verbatim.

The OP's question was "Why doesn't this work?". My question is "Why does this work?". The only thing I could think of was that I do have this Crypt module installed. I am not sure what is going on "under the covers" that allows my machine to successfully access my $url = "https://www.cryptopia.co.nz/api/GetCurrencies";. My experience with https sites is limited and I profess no expertise whatsoever, but I've never seen an https access fail as long as I have this Crypt module installed.


In reply to Re: LWP::Simple::get($url) does not work for particular urls by Marshall
in thread LWP::Simple::get($url) does not work for particular urls by ssara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.