What is the issue you’re encountering
CURL requests in API are failing without an error. I can CURL from my PCs command line, though, so the only thing I can think is… maybe the server is blocked?
What steps have you taken to resolve the issue?
-
disabled my server’s firewall (CSF),
-
disabled all WAF Rules, and
-
allowlisted my server’s IPv4 and IPv6 in Security > WAF > Tools
What are the steps to reproduce the issue?
This is the script I’m running:
#!/bin/sh
printf "Updating example.com:\n"
curl --request GET \
--url "https://api.cloudflare.com/client/v4/zones/?name=example.com" \
--header "X-Auth-Email: [email]" \
--header "X-Auth-Key: [global key]" \
--header 'Content-Type: application/json'
printf "Response complete\n"
This is the result:
# bash cloudflare_test.sh
Updating example.com:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:31 --:--:-- 0