using libcurl to call server and post signal