Http Digest Authentication

#4220 Http Digest Authentication

As discussed i am creating PR for 1-3 points. 

Please check and revert.

regards
Mithun Mandal
Can't it be done in more strarightforward way?