Subject: | Error in Authentication Digest Implementation() |
LWP send auth request
Proxy-Authorization: Digest ....... nc="00000001", .....
but RFC 2617
required for attribute nc following syntax:
nonce-count = "nc" "=" nc-value
nc-value = 8LHEX
(unquoted-string)
error in LWP::Authen::Digest :
for (@order) {
next unless defined $resp{$_};
push(@pairs, "$_=" . qq("$resp{$_}"))
}
change it to
for (@order) {
next unless defined $resp{$_};
if($_ eq 'nc'){
push(@pairs, "$_=" .qq($resp{$_}))
}else{
push(@pairs, "$_=" . qq("$resp{$_}"))
}
}