[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Reading https URL's



On Sun, 30 Aug 1998 22:58:26 -0700, Eric Albert wrote:
>
>I'm currently working on something that requires that I retrieve the
>results of a Perl script running off of a secure server (i.e one that's
>only accessible via https).  When I try to use LWP::Simple to do this,
>though, I get this error message:
># Protocol scheme 'https' is not supported
>File 'Eric's Funky G3:MacPerl Ÿ:lib:LWP:UserAgent.pm'; Line 206
>
>Tracing through the code shows that https support through LWP seems to
>depend on LWP::SecureSocket, which in turn requires Net::SSLeay...but
>Net::SSLeay is not in my MacPerl distribution! This is MacPerl
5.2.0r4...

It's not supposed to be in tne MacPerl distribution. 

https is a pain even on Unix. You need to install an old .version (not the
current one) of SSLeay, and then install Net::SSLeay, which is available
at CPAN. To my knowledge this version of SSLeay isn't available for MacOS
(but I'm not sure about this). There's also been talk on the libwww-perl
list tnat LWP will be changed to use the latest SSLeay and, I believe,
Crypt::SSLeay.

>
>Anyway, that leads to two questions -- how do I do a GET on a URL via
https
>in MacPerl, and why is LWP::SecureSocket part of the MacPerl distribution
>if it depends on a module that is not there?

Several things in LWP depend on other modules that may not be there. That
doesn't mean you don't provide the complete LWP distribution.

>
>If it isn't possible to do this in MacPerl, but it's relatively
>uncomplicated via other methods on the Mac, I'd really appreciate
receiving
>a note via email (not on the list) about that.

In this case, the easiest way would be to send AppleEvents to a browser.

>
>Thanks in advance,
>Eric
>
>--------------------------------------------------------
>Eric Albert                     ejalbert@cs.stanford.edu
>http://www.stanford.edu/~ejalbert/



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch