# sucked this right out of news. Is there one or two # simple edits to pick up https? All we want to do # is check that a page is responding. # Tried to replace with https: but boom. Thanks use strict; use LWP::UserAgent; use HTTP::Request; use HTTP::Response; my $ua = new LWP::UserAgent; my $res = new HTTP::Response; #my $req = new HTTP::Request 'GET' => "http://www.yahoo.com"; $res = $ua->request($req); print $res->code; open MYRESFILE, ">result.txt" or die; print MYRESFILE $res->as_string; close MYRESFILE;
In reply to Checking that a page gets served via HTTPS by ballJoint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |