Added support for basic HTTP authentication