Added support for HTTP Basic authentication.