Subject: | User agent |
It would be nice if test has an option to specify user agent.
The test complains on https://creativecommons.org/licenses/by/3.0/ — attempt to get head returns "403 Forbidden". I found that respond also contains the text:
The owner of this website (creativecommons.org) has banned your access based on your browser's signature (318837a559384f4a-ua22).
The problem can be easily workarounded by replacing the line
my $ua = LWP::UserAgent->new();
with
my $ua = LWP::UserAgent->new( agent => 'Mozilla/5.0' );
or even with
my $ua = LWP::UserAgent->new( agent => '' );
I have no idea why site owners has banned libwww-perl...