How to properly use curl_init for a GET request in PHP? or What's the correct way to handle a curl_in

18 Replies, 1485 Views

Check if your PHP has curl enabled. Run `php -m | grep curl` in terminal. If nothing shows up, you gotta install it.

Also, maybe the API requires a POST? Try changing the method:

```php
curl_setopt($ch, CURLOPT_POST, true);
```

Just a thought.

Messages In This Thread



Users browsing this thread: 1 Guest(s)