Link checker: Allow configurable User Agent string
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 26 Sep 2012 21:35:05 +0000 (17:35 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 19 Oct 2012 18:46:33 +0000 (14:46 -0400)
commit1140d9d29e75b0b52de7cafe00a58e74fa467f27
tree1a8500c9a39626e18d24088948264b69fd7d722a
parent24e49e418ce138566e4d53ed425210bb9d55fb9e
Link checker: Allow configurable User Agent string

Credit to Bill Erickson for noticing that tests were resulting in an
inordinate number of 403 Forbidden responses, which turned out to be
due to discrimination by sites against a libwww/* user agent string.

We now use "Evergreen <version> Link Checker" by default, and it's
configurable in opensrf.xml (grep for user_agent).

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm