in reply to Re: Can't locate object method "new" via package "LWP::Protocol::https::Socket"
in thread Can't locate object method "new" via package "LWP::Protocol::https::Socket"
I might be obscuring things by troubleshooting XMLRPC::Lite when I could be troubleshooting LWP.
use LWP::UserAgent; use HTTP::Request::Common; $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; my ($response_content, $response_status); my $userAgent = LWP::UserAgent->new(); $userAgent->agent("PhilPerl"); my $request = HTTP::Request->new(); $request->method('GET'); $request->uri('https://perlmonks.org'); my $response = $userAgent->request($request);
Gets me a $response that seems more helpful. The gist of which is:
Can't load 'C:/Strawberry/perl/site/lib/auto/Net/SSLeay/SSLeay.xs.dll' for module Net::SSLeay: load_file:The specified module could not be found (LWP::Protocol::https not installed)But I do have a C:\Strawberry\perl\site\lib\auto\Net\SSLeay\SSLeay.xs.dll so I'm not sure what to make of that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can't locate object method "new" via package "LWP::Protocol::https::Socket"
by syphilis (Archbishop) on Jul 08, 2022 at 23:50 UTC | |
by Philbert (Novice) on Jul 12, 2022 at 18:04 UTC | |
|
Re^3: Can't locate object method "new" via package "LWP::Protocol::https::Socket"
by kcott (Archbishop) on Jul 08, 2022 at 21:31 UTC | |
|
Re^3: Can't locate object method "new" via package "LWP::Protocol::https::Socket"
by ikegami (Patriarch) on Jul 11, 2022 at 00:56 UTC | |
|
Re^3: Can't locate object method "new" via package "LWP::Protocol::https::Socket"
by Anonymous Monk on Jul 09, 2022 at 09:54 UTC |