Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://example.com/api/my/link/';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //I tried this to see any certificate problems
- $response = curl_exec($ch);
- curl_close($ch);
- return $response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement