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

LWP - Resquest for a HTTPS Protocol

Thread Next
Elofran Marques
January 18, 2002 10:47
LWP - Resquest for a HTTPS Protocol
Message ID:
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", "");
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About