Added support for HTTP BASIC authentication.