cUrl wrapper as client for HTTP queries