I am using an implementation of Perl which is supplied by a commercial organization so that I can run their application based on Perl.Therefore I have no detailed knowledge about how to add facilities such as LWP::UserAgent. However, I did try but found I after I had added a Perl module yet another Perl module was required. For example, when using the Perl supplied by tangent I now get the following message: “LWP will support https URLs if the LWP::Protocol::https module is installed.” I did not get to a successful conclusion. I have a new set of Perl installed so that all that I added (very likely incorrectly) is no longer there. Therefore I want to try again. Can a monk give me the steps so that I can do whatever is necessary to get LWP::UserAgent (taking into account the message I got when trying the Perl sent by tangent) and any required Perl modules added to my version of Perl?use LWP::UserAgent; my $url = 'http://www.bbc.co.uk/radio4/programmes/schedules/fm/2015/10 +/13'; my $ua = LWP::UserAgent->new(ssl_opts => {verify_hostname => 0}); my $res = $ua->get( $url ); my $html = $res->content; print $html;
In reply to BBC4 Radio Schedules and LWP:UserAgent problem by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |