write_stackdriver plugin: Centralize HTTP calls, add API error handling.
authorFlorian Forster <octo@collectd.org>
Sun, 7 Oct 2018 08:21:47 +0000 (10:21 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 8 Oct 2018 08:24:58 +0000 (10:24 +0200)
commit74d6bcc2d388d191f856b4905ea333dd36702a4b
tree20b8749ba3105a4f601f66bbaae36d8e98167599
parent1c94793facfbcdade4cf5a9b3a4a65a1cf1a7d48
write_stackdriver plugin: Centralize HTTP calls, add API error handling.

This change implements do_post(), a function for doing POST requests.
In case of a user error (a HTTP 4xx status code) the reply is assumed to
be an error and is parsed accordingly.
src/write_stackdriver.c