LWP::Useragent problem with https

U

usenet

I'm running a perl script that I downloaded, it requires various perl
HTTP and LWP modules that I have installed using CPAN.

However the script produces and error that says "Your LWP::UserAgent
doesn't support the HTTPS protocol", but the CPAN install says:-

...
...
Installing /usr/lib/perl5/site_perl/5.8.4/LWP/Protocol/GHTTP.pm
Installing /usr/lib/perl5/site_perl/5.8.4/LWP/Protocol/data.pm
Installing /usr/lib/perl5/site_perl/5.8.4/LWP/Protocol/nogo.pm
Installing /usr/lib/perl5/site_perl/5.8.4/LWP/Protocol/https.pm
Installing /usr/lib/perl5/site_perl/5.8.4/HTTP/Message.pm
Installing /usr/lib/perl5/site_perl/5.8.4/HTTP/Status.pm
...
...

So is there anything else I have to do to get LWP::UserAgent to
support HTTPS or is it something wrong with the perl script I've
downloaded?
 
T

T W Hu

So is there anything else I have to do to get LWP::UserAgent to
support HTTPS or is it something wrong with the perl script I've
downloaded?

I only installed openssl and Crypt-SSLeay for https.
 
M

mothra

So is there anything else I have to do to get LWP::UserAgent to
support HTTPS or is it something wrong with the perl script I've
downloaded?

perldoc LWPcook should give you what you need.

Hope this helps

Mothra
 
U

usenet

mothra said:
perldoc LWPcook should give you what you need.

Hope this helps
It would if I had LWPcook anywhere on my system, when I try the above
I get 'No documentation found for "LWPcook".'

I'll see if I can find it, thanks.
 
U

usenet

mothra said:
perldoc LWPcook should give you what you need.

Hope this helps
Re: my previous Follow-up: LWPcook refers me to the README.SSL file
found in the libwww-perl distribution. When I started all this I
installed HTTP::Request which seemed to install a load of other stuff
including LWP::UserAgent. Is this part of libwww-perl or is that
something else that I also need?
 
M

mothra

Re: my previous Follow-up: LWPcook refers me to the README.SSL file
found in the libwww-perl distribution. When I started all this I
installed HTTP::Request which seemed to install a load of other stuff
including LWP::UserAgent. Is this part of libwww-perl or is that
something else that I also need?

You need to install the libwww-perl distribution. If you are on a unix/linux
system you can use CPAN to install it.
perl -MCPAN -e shell

cpan> i /libwww/
Author LWWWP ("The libwww-perl mailing list" <[email protected]>)
Distribution G/GA/GAAS/libwww-perl-5.10.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.53.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.77.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.803.tar.gz

Then

cpan> install G/GA/GAAS/libwww-perl-5.803.tar.gz
should work

Hope this helps

Mothra
 
U

usenet

mothra said:
You need to install the libwww-perl distribution. If you are on a unix/linux
system you can use CPAN to install it.
perl -MCPAN -e shell

cpan> i /libwww/
Author LWWWP ("The libwww-perl mailing list" <[email protected]>)
Distribution G/GA/GAAS/libwww-perl-5.10.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.53.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.77.tar.gz
Distribution G/GA/GAAS/libwww-perl-5.803.tar.gz

Then

cpan> install G/GA/GAAS/libwww-perl-5.803.tar.gz
should work
OK, thanks, I seem to have got there now, the perl script no longer
claims that it can't handle HTTPS.

I'm a died in the wool Unix C/C++ programmer by trade and I'm just
dabbling in perl to run (and maybe modify) some mail utilities on my
home Linux system. I knew how to get the modules this particular
script required from CPAN but that didn't give me quite all I needed.

Thanks for the help everyone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top