From Social Pheasant, 4 Years ago, written in PHP.
Embed
  1. function get_stocks($url) {
  2.         $ch = curl_init();
  3.         $timeout = 5;
  4.         curl_setopt($ch, CURLOPT_URL, $url);
  5.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  6.         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  7.         curl_setopt($ch, CURLOPT_REFERER, 'http://socialclub.rockstargames.com/games/gtav/xbox/bawsaq');
  8.         $data = curl_exec($ch);
  9.         curl_close($ch);
  10.         return $data;
  11. }