digest method realm autodetection added

digest method realm autodetection added (if realm option is not specified it try tu use default realm)