Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister


by abachus (Monk)
on Apr 09, 2007 at 12:27 UTC ( #608954=perlquestion: print w/replies, xml ) Need Help??

abachus has asked for the wisdom of the Perl Monks concerning the following question:

Morning/Evening to all,

Today my intention is to attempt to construct code to authenticate (https) to a remote server. Currently i'm trying to digest the Crypt::SSLeay documentation whilst also searching for further documentation on LWP/SSLeay (on this site and google). I was wondering if anyone has recently done what i'm trying to do and/or knows of a good bit of english i can read on this matter that could save me some time.

thanks for your patience,

Isaac Close

Replies are listed 'Best First'.
Re: LWP SSLeay
by jettero (Monsignor) on Apr 09, 2007 at 12:38 UTC

    Thousands have done it this year alone I imagine. Choose LWP::Simple and then my $content = get(""). There's a million other ways to do it perhaps. What do you mean by "authenticate?" I understand there's a way to login over ssl. I suspect it'll turn out to be an LWP builtin.

    In any case, I doubt you'll have to read much of the SSL docs and will find almost everything in the LWP docs.

    If you're intending to automate the process of uploading or downloading files (or something of that nature), you should probably check out WWW::Mechanize, which will do all the http and ssl for you and provide helpers to make that even simpler to do.


      Thanks for you timely response. By authenticate i mean to login with a username and password variable pair, hopefully. Isaac Close

        LWP, LWP::Simple and WWW::Mechanize all support logins via the URI or via authentication methods (ie, $ua->credentials($user, $pass)). So, you should be all set without having to read a lick of the SSL docs. Mech has revolutionized the way I write these automated processes. I highly recommend starting there.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://608954]
Approved by jettero
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2022-09-25 07:48 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (116 votes). Check out past polls.