AC_MSG_ERROR([popt header not found. please install popt-devel.]))
dnl internationalization macros
-AM_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
dnl ==================================================
dnl checks for typedefs
ZYPP_THROW(MediaCurlSetOptException(_url, _curlError));
}
- if( !_url.getQueryParam("auth").empty() &&
- (_url.getScheme() == "http" || _url.getScheme() == "https"))
+ if(_url.getScheme() == "http" || _url.getScheme() == "https")
{
std::vector<std::string> list;
std::vector<std::string>::const_iterator it;
- str::split(_url.getQueryParam("auth"), std::back_inserter(list), ",");
+
+ string use_auth = _url.getQueryParam("auth");
+ if( use_auth.empty())
+ use_auth = "digest,basic";
+
+ str::split(use_auth, std::back_inserter(list), ",");
long auth = CURLAUTH_NONE;
for(it = list.begin(); it != list.end(); ++it)
if( auth != CURLAUTH_NONE)
{
- DBG << "Enabling HTTP authentication methods: "
- << _url.getQueryParam("auth") << std::endl;
+ DBG << "Enabling HTTP authentication methods: " << use_auth
+ << " (CURLOPT_HTTPAUTH=" << auth << ")" << std::endl;
ret = curl_easy_setopt( _curl, CURLOPT_HTTPAUTH, auth);
if ( ret != 0 ) {
} // namespace media
} // namespace zypp
+//
\ No newline at end of file