For APIs, Postman is a lifesaver. Test your curl_init get request there first, then port to PHP.
Also, logging the full request helps:
```php
curl_setopt($ch, CURLOPT_VERBOSE, true);
```
But it spams your logs, so use it sparingly.
Also, logging the full request helps:
```php
curl_setopt($ch, CURLOPT_VERBOSE, true);
```
But it spams your logs, so use it sparingly.
