Search notes:

Perl module LWP::Simple

get

use warnings;
use strict;

use LWP::Simple;

my $result = get('https://raw.githubusercontent.com/ReneNyffenegger/PerlModules/master/LWP/Simple/get.pl');
print($result);
Github repository PerlModules, path: /LWP/Simple/get.pl

getprint / getstore

#!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;

my $url;

$url = 'https://raw.githubusercontent.com/ReneNyffenegger/PerlModules/master/LWP/Simple/script.pl';
# On Windows, this url prints
#   500 write failed: Bad file descriptor
# even if the PERL_LWP_SSL_VERIFY_HOSTNAME env variable
# is set to 0.
# $url = 'http://www.google.com';

# Just print a remote file
getprint($url);

# Get the remote file and store it
getstore($url, 'downloaded');
Github repository PerlModules, path: /LWP/Simple/script.pl

See also

The error message Can't load SSLeay.xs.dll.
download-content-of-linked-pages.pl
HTTP::Async can be used to download resources in parallel rather than sequential.
Perl modules

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741108186, '3.142.185.209', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/LWP/Simple/index(81): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78