added download capability for basic authentication urls