Link checker: Allow configurable User Agent string collab/senator/url_verify_squash
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 26 Sep 2012 21:35:05 +0000 (17:35 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 26 Sep 2012 21:42:16 +0000 (17:42 -0400)
commit4cd75673a90155241f44652b848d66d486907fb4
tree03cdb58e14111cc11a63700723b6ae30201706f6
parent0e6ce9e238fad4a3894917936ba26a8c0a5715f7
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