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 be removed since PHP returns `null` by default.