Have you tried dumping the HTTP status code? Sometimes the request works but returns a 404 or 500.
```php
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo "Status: " . $httpCode;
```
If it’s 0, the request didn’t even reach the server. Could be a DNS or network issue.
```php
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo "Status: " . $httpCode;
```
If it’s 0, the request didn’t even reach the server. Could be a DNS or network issue.
