I am experiencing a similar problem to https://github.com/wpsharks/comet-cache/issues/854
My web server’s certificate does not have the right hostname (not a real issue because the site is behind Cloudflare) and curl cannot handle that. How to fix this? Shouldn’t curl be called with --insecure?