X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=c9f06518ba1db2499031bc9b66ba262a73567b6d;hb=ef77268059b78e11226a23b72f500238e83d399a;hp=c0ab6fdbed7721374ccbff5e180dce6e897a7690;hpb=01f4a6eb87b83ccd2f77e0116e5bd09645c731d5;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) {