static void http_send_buffer (char *buffer) /* {{{ */
{
- printf("Sending: --------\n");
- printf(buffer);
- printf("---------------\n");
-
int status = 0;
curl_easy_setopt (curl, CURLOPT_POSTFIELDS, buffer);
status = curl_easy_perform (curl);
metric_name, timestamp, value);
send_buffer_fill += status;
- printf(send_buffer);
- printf("Fill: %i\n", send_buffer_fill);
- printf("----\n");
-
if ((sizeof (send_buffer) - send_buffer_fill) < 128)
{
http_flush_buffer();