How to properly use curl_init for a GET request in PHP? or Why is my curl_init GET request not workin

24 Replies, 2046 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)