Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $url = 'http://example.com/api/my/link/';
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_URL, $url);
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  5. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //I tried this to see any certificate problems
  6. $response = curl_exec($ch);
  7. curl_close($ch);
  8. return $response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement