Support both Basic and Digest authentication (Basic need to be
preemptive to be used)