X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=c9f06518ba1db2499031bc9b66ba262a73567b6d;hb=0febfbd11d87acd8a0f10bbcf5d4a58bb68b8dc0;hp=c0ab6fdbed7721374ccbff5e180dce6e897a7690;hpb=f2389f97fbec15f49dcd1d9b06b3b6bbd0837e8a;p=collectd.git diff --git a/src/curl_xml.c b/src/curl_xml.c index c0ab6fdb..c9f06518 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -842,6 +842,8 @@ static int cx_init_curl (cx_t *db) /* {{{ */ curl_easy_setopt (db->curl, CURLOPT_USERAGENT, COLLECTD_USERAGENT); curl_easy_setopt (db->curl, CURLOPT_ERRORBUFFER, db->curl_errbuf); curl_easy_setopt (db->curl, CURLOPT_URL, db->url); + curl_easy_setopt (db->curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt (db->curl, CURLOPT_MAXREDIRS, 50L); if (db->user != NULL) {