Created
July 20, 2017 13:50
-
-
Save ptasker/028cf96b7dab28e218ba3ab984b524c5 to your computer and use it in GitHub Desktop.
Test PHP cURL connections to the DBI API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'https://api.deliciousbrains.com'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_VERBOSE, TRUE); | |
$result = curl_exec($ch); | |
curl_close($ch); | |
var_dump($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment