I am just wanting to connect to a site via https, download the page, parse through it, and reupload it securely. As it stands,
My problem is three-fold: 1) Everyone and their monk have told me they do it all the time, 2)
I cannot for the life of me see where I am any different from any other code I have seen on the net, and 3)
I get a repsonse from snippet one that I don't understand. I am using (or have used) openSSL 0.9.3-0.9.6 as well as all current version of SSLeay.pm and LWP.
Your help in bringing a young acolyte to inner harmony and joy will be greatly rewarded in the afterlife.
Both snippets begin with:
use LWP;
use LWP::UserAgent;
use LWP::Protocol::https;
and then:
my $connect = new LWP::UserAgent;
my $request = new HTTP::Request 'POST', 'https://secure.directnic.com/
+myaccount/myaccount.php';
my $response = $connect->request($request);
print $response;
This prints HTTP::Response=HASH(nxnnnennn) where n is some number.
The second snippet changes
print $response;
to:
print $response->content;
print $response->as_string;
and gives me 500 (Internal Server Error) cannot connect to secure.directnic.com:443.
I know that I can conect to it when I telnet to that port. Any suggestions from anyone?