title: cURLlib/File_get_contents only loading partial data
body: <p>So i'm doing a little project where i wanna get some data from another website. After doing some reading, i figured i should use the <code>cURL</code> lib (&amp; <code>get_file_contents()</code>) - but it wasn't as easy as that, apparently.<br>
  In my case i want some of the data contained in a table @ <a href="http://www.nasdaqomxnordic.com/news/companynews" rel="nofollow">http://www.nasdaqomxnordic.com/news/companynews</a><br>
  But the problem is that, its only returning part of the site to me - i'm missing all the table data, and most of the css (not that i care about the css).</p>
  
  <p>So far i have tried, <code>simple_html_dom</code>, <code>cURL</code>, <code>file_get_contents($url)</code> and a couple of other parsers, and all of them seem to only return partial data. I used a couple of hours on it now, and doesn't seem to be going anywhere.</p>
  
  <p>I'm currently using the code below, to retrieve the site.</p>
  
  <pre><code>function curl($url) {
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      $data = curl_exec($ch);
      curl_close($ch);
      return $data;
  }
  </code></pre>
  
  <p>and it returns me something like this - <a href="http://imgur.com/F1F74VT" rel="nofollow">http://imgur.com/F1F74VT</a><br>
  Would appreciate some help, i'm about to bash my head into something - and nobody likes to clean up blood :)</p>
  
  <p><em>EDIT</em><br>
  So i have done some more digging, and it seems to be because most of the content on the site is loaded dynamically.</p>
  
  <p>So what are my options now? i manage to get a hold of the HTTP GET request, that fetches the data - but i'm not sure what my next step are :)</p>