Added support for HTTP authentication