Use HTTP auth when checking for presence of API
Merge pull request #3191 from fvaleur/fix_use_api_auth

Use HTTP auth if configured when checking for presence of API