in reply to How to get html code from a secure (https:\\) page?
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 |