Added basic authentication, digest does not seem to work