title: Retreiving a 3rd-party webpage with CURL/PHP - not entirely working
body: <p>I am writing a tool that accesses a set of external website pages. Here is my test code to see if I can retrieve the page:</p>
  
  <pre><code>function get_data($url) {
  
      $ch = curl_init();
      $timeout = 5;
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      /* curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); */
      $data = curl_exec($ch);
      curl_close($ch);
      return $data;
  
  }
  
  $returned_content = get_data('http://www.imdb.com/');
  echo $returned_content;
  </code></pre>
  
  <hr>
  
  <p>The thing is when I pass Google (for example) as the URL, I get the Google homepage in my browser (sans images for obvious reasons), but when I pass the site I want to see, <code>www.imdb.com</code>, I get nothing. Why is this, and what can I do about it?</p>