Closed opus-nbonenberger closed 4 months ago
Thanks for raising, @opus-nbonenberger
I'm seeing the same. Not sure how, or even if we can get round this. 🤔
@paul-cossey I googled how to bypass Cloudflare with curl
and found something on https://www.zenrows.com/blog/curl-bypass-cloudflare#http-headers.
I tested:
curl https://openvpn.net/downloads/openvpn-connect-v3-macos.dmg -v -L -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: en-US,en;q=0.9" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" --output "/Users/admin/Desktop/OpenVPN.dmg"
It seems to work here.
Can you add the additional arguments to the curl command in the recipe and test it?
Thanks, @opus-nbonenberger
Funnily enough I had started adding all of those yesterday in testing, just didn't end up finishing.
I've now added them all it works for me: https://github.com/autopkg/dataJAR-recipes/commit/f67a7843a629b0a5e0269e4352b41be86046e393
The download recipe for OpenVPN Connect fails because a 403 Error (Forbidden). Maybe it's a kind of access protection? Saw a Cloudflare like "checking" screen when manually opening the URL in the browser.