Code

curl_xml plugin: Check for a curl_easy_perform() error first
authorDan Fandrich <dan@coneharvesters.com>
Wed, 6 Feb 2013 22:35:04 +0000 (23:35 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 16 Mar 2013 12:29:26 +0000 (13:29 +0100)
commit56c7b21899e44b57b5031a21ca3652b30f4fc1aa
tree715400dcb8ec895f59b7e595ea9b9be412bc8f1e
parent61f60a27181027b73181dcb805ce319335a64fb2
curl_xml plugin: Check for a curl_easy_perform() error first

The value of CURLINFO_RESPONSE_CODE isn't valid otherwise.
Also, use the symbolic name CURLE_OK in all plugins where
appropriate.

Change-Id: I17ae9c7eea393ee4641296b5484c93809a662dd9
Signed-off-by: Florian Forster <octo@collectd.org>
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