Modified lib to use Curl for event posting