May I ask what PHP version you are using? May I also ask what URL you are using? I mean, is it live domain or a private hostname or IP? I managed to recreate the same issue on my localhost, but it works fine on real domains. I will look into my own localhost tomorrow, cURL might not be configured correctly, or it is blocked on Cloudflare for the same reason as yours (although it's not showing up in firewall events yet).
One thing is 100% sure, the cause of the cURL failure for you, is Cloudflare firewall on our server. I will look into everything more closely tomorrow.
hyc wrote:could it be something on your side where you have a redirect
We don't actually use redirects. The files your request are physical paths, and Cloudflare wouldn't know (or care) about that anyway. It is blocking your cURL requests. There is a CURLOPT_FOLLOWLOCATION option in PHP, but it's not used because there are no redirects, and the issue is Cloudflare challenging the request as we can clearly see.
hyc wrote:? by any chance do you have another domain on which we can test to see ?
You mean for trying to cURL the zip? Yes many, but this won't offer anything useful. All our websites are on Cloudflare. The requests will likely fail like your current cURL, because Cloudflare has decided to challenge them for some reason.
I'll get back to you tomorrow.