Subject: | LWP::UserAgent: HTTP-Digest authentication fails if server uses realm with comma-char (',') |
If I try to request a ressource which requires HTTP-Digest
authentication using a realm including a comma-charater (',')
LWP::UserAgent fails, because it rewrites the challenge replacing all
commas with semicolons.
UserAgent.pm in request():
Show quoted text
> $challenge =~ tr/,/;/; # "," is used to separate auth-params!!
Probably it's uncommon to have a realm like "Unit, Organization", it's
definitely RFC-conform.
Since HTTP-Digest authentication uses the realm in it's hash
LWP::UserAgent fails computing the correct hash, after altering the
realm value.
sandoz