in reply to How to get html code from a secure (https:\\) page?

Using lwp to access ssl is documented here: lwpcook#HTTPS. The only thing that I can see from looking at your code is the website listed doesn't actually exist as an ssl server. Just use the example listed in the docs, and you'll get better error messages and hopefully be able to debug your problem:
use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => 'https://encrypted.google.com/'); my $res = $ua->request($req); if ($res->is_success) { print $res->as_string; } else { print "Failed: ", $res->status_line, "\n"; }

Replies are listed 'Best First'.
Re^2: How to get html code from a secure (https:\\) page?
by Anonymous Monk on Feb 16, 2011 at 18:06 UTC
    Thank you Win. I ran the sample code and got "500 Connect failed" message. Based upon the document that you pointed to me, I need to install the SSL interface. Do you know where I can download it? thanks again.