develooper Front page | perl.libwww | Postings from January 2002

LWP - Resquest for a HTTPS Protocol

Thread Next
From:
Elofran Marques
Date:
January 18, 2002 10:47
Subject:
LWP - Resquest for a HTTPS Protocol
Message ID:
004701c1a058$b3107150$1b01000a@des02
Hi, I really need of help...

I don't make a request for a HTTPS protocol. The simple script is:

require LWP::UserAgent;
$ua = LWP::UserAgent->new;
$request = HTTP::Request->new("GET", "https://www.webcompre.com.br");
print "error" if $ua->is_protocol_supported("https");
$response = $ua->request($request); 
if ($response->is_success) {
 print $response->content;
} else {
 print $response->message;
}

It returns the message: "Can't locate object method "new" via package "LWP::Protocol::https" (perhaps you forgot to load "LWP::Protocol::https"?)"

I don't understand... the LWP library support the HTTPS protocol or not???

Thanks so much...

Elofran Marques
Web Developer - Brazil

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About