print contents of post
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-15 23:02:32 +01:00
parent 907a31b98c
commit 17cdd989e8

View File

@@ -48,6 +48,15 @@ int outlet_create_handler(short event, restd_conn_t *conn, void *userdata)
printf("==> RESTD_EVENT_READ"); printf("==> RESTD_EVENT_READ");
} }
else if (event & RESTD_EVENT_CLOSE)
{
long int taille;
char *data;
data = restd_http_get_content(conn, 0, &taille);
printf("******* : <%s>\n", data);
free(data);
}
#if 0 #if 0
devices_manager_t *dm = (devices_manager_t *)userdata; devices_manager_t *dm = (devices_manager_t *)userdata;
struct evbuffer *buffer; struct evbuffer *buffer;