Subject: | Can't locate object method "host" via package "URI::_generic" |
This error is usually returned when the URL is malformed. The method
host() of URI::_generic fails returning a undef, which LWPx::UserAgent
do not handle properly.
The method host() is not in fact contained in URI::_generic but in
file.pm. It took me a while to find out so I thought I would save time
to whoever is reading this.
A quick fix for this problem is changing line 200 of ParanoidAgent.pm into
if ((not $host) || ($self->_bad_host($host))) {
In this way a bad host or an bad URL raise an error (403).