X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=c9f06518ba1db2499031bc9b66ba262a73567b6d;hb=5fabca96e9bf4a8c5bf0e721b831b1bc00ba35d1;hp=c0ab6fdbed7721374ccbff5e180dce6e897a7690;hpb=4e5c84e8251b25b11b5df7ef3b66259436bdea69;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) {