Changes for supporting http basic auth.