Buddyholly83
IS-IT--Management
Successfully able to perform a form post using my code below. But now i need to connect to a secure webserver, however I am guessing that connecting through SSL isn't as simple as changing http -> https!
Can anyone point me in the right direction on how to make an ssl connection, I've installed Crypt::SSLeay - is this the standard class for secure connections? Is there any better ones?
Thanks in advance
Can anyone point me in the right direction on how to make an ssl connection, I've installed Crypt::SSLeay - is this the standard class for secure connections? Is there any better ones?
Thanks in advance
Code:
use LWP::UserAgent;
# Make the request to the server
$userAgent = new LWP::UserAgent;
$userAgent -> timeout([10]);
my $response = $userAgent -> post($uri,
[
Username => $username,
Password => $password,
]
);
# Response
$response = $response -> as_string;
print $response;