How to make a POST request using the Collectd curl plugin

collectdcurl

How do I make a post request using the curl plugin? I see no option where I can specify the post data, or the type of request.

Is it even possible with the plugin, or is there an alternative plugin I can use?

Best Answer

While libcurl certainly supports the POST method (example), it appears that the specific functionality isn't exposed in the current version of the collectd plugin.

Your best shot is probably going to be to setup a server/service/page that can "proxy" the POST request for you through a GET request, and return the results.

Related Topic