Yukio has asked for the wisdom of the Perl Monks concerning the following question:
LWP::UserAgent::new: () LWP::UserAgent::request: () LWP::UserAgent::simple_request: GET https://www.asecureserver.com/ LWP::UserAgent::_need_proxy: Not proxied LWP::UserAgent::request: Simple response: Not ImplementedAnd here's the simplified script:
#!\usr\bin\perl -w
use LWP;
use LWP::Debug '+';
require HTTP::Request;
use LWP::UserAgent;
use Carp;
use strict;
my ($url, $useragent, $request, $response, $response_text);
$url = 'https://www.asecureserver.com/'; # not a real url
$useragent = LWP::UserAgent->new;
$request = HTTP::Request->new('GET', $url);
$response = $useragent->request($request);
if ($response->is_success) {
print $response->content;
}
else {
print 'Failed';
}
Any and all help is greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTPS requests
by cacharbe (Curate) on Sep 21, 2001 at 21:25 UTC | |
|
Re: HTTPS requests
by blakem (Monsignor) on Sep 21, 2001 at 21:27 UTC | |
|
Re: HTTPS requests
by shotgunefx (Parson) on Sep 22, 2001 at 01:25 UTC |