curl plugins: Use configured URL for all poll cycles
authorPavel Rochnyack <pavel2000@ngs.ru>
Tue, 4 Jul 2017 10:31:46 +0000 (17:31 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Tue, 4 Jul 2017 12:50:07 +0000 (19:50 +0700)
commite7a7be6760b7f79780e9e9ed10fa9e029a3faa38
tree45ade3078fbbdcb4098d2e538fb3b6e8dfa7a3f7
parent24bdf52decaf93359aab0364fb11420af5cd4a21
curl plugins: Use configured URL for all poll cycles

After redirect received, Collectd send subsequent requests to new location.
That is wrong - Collectd should use configured URL for all poll cycles, regardless of the responses received previously.

Problem was caused by libcurl issue 1631. To avoid that we set request url in each poll cycle.

Closes: #2328
src/apache.c
src/ascent.c
src/bind.c
src/curl.c
src/curl_json.c
src/curl_xml.c
src/nginx.c
src/write_http.c