ballJoint has asked for the wisdom of the Perl Monks concerning the following question:
# 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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking that a page gets served via HTTPS
by geekgrrl (Pilgrim) on Apr 29, 2004 at 20:14 UTC | |
|
Re: Checking that a page gets served via HTTPS
by kutsu (Priest) on Apr 29, 2004 at 17:40 UTC |