support for basic auth and https